-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Doc] Split radix_sort doc page into key and key-value API #1586
Conversation
c64c223
to
e1b48f0
Compare
Signed-off-by: Dmitriy Sobolev <[email protected]>
Signed-off-by: Dmitriy Sobolev <[email protected]>
documentation/library_guide/kernel_templates/esimd/radix_sort_by_key.rst
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitriy Sobolev <[email protected]>
documentation/library_guide/kernel_templates/esimd/radix_sort.rst
Outdated
Show resolved
Hide resolved
documentation/library_guide/kernel_templates/esimd/radix_sort.rst
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitriy Sobolev <[email protected]>
Signed-off-by: Dmitriy Sobolev <[email protected]>
Signed-off-by: Dmitriy Sobolev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
I have one optional comment about wording preference, which I will leave up to you. Thanks for making this change, I think it makes it more readable, even if it requires some duplication.
documentation/library_guide/kernel_templates/esimd/radix_sort.rst
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitriy Sobolev <[email protected]>
documentation/library_guide/kernel_templates/esimd/radix_sort.rst
Outdated
Show resolved
Hide resolved
Signed-off-by: Dmitriy Sobolev <[email protected]>
@dcbenito, could you assist with verifying the changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes, otherwise LGTM.
|
||
where N\ :sub:`keys_per_workgroup` and N\ :sub:`values_per_workgroup` are the amounts of memory | ||
to store keys and values, respectively. `C` is some additional space for storing internal data. | ||
where N\ :sub:`keys_per_workgroup` is the amounts of memory to store keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change amounts to amount.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
- The element type of sequence(s) to sort must be a C++ integral or floating-point type | ||
other than ``bool`` with a width of up to 64 bits. | ||
|
||
.. note:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This formatting is odd and not rendering in Note form. Should this be a note or a header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I got you correctly, the comment is about rendering of the note if you open the file on GitHub in "preview" format.
If so, there are other instances of the same issue in other places, for example, https://github.com/oneapi-src/oneDPL/blob/main/documentation/library_guide/parallel_api/range_based_api.rst, so I guess it is a common issue.
The note is rendered properly if this document is interpreted into html format by Sphinx tool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the Current Limitations sub-header was confusing me. I built the docs and can see that it does render correctly, so this is a non-issue that you can ignore.
N\ :sub:`keys_per_workgroup` + N\ :sub:`values_per_workgroup` + C | ||
|
||
where N\ :sub:`keys_per_workgroup` and N\ :sub:`values_per_workgroup` are the amounts of memory | ||
to store keys and values, respectively. `C` is some additional space for storing internal data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the double space between "...respectively. 'C' is some..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
Signed-off-by: Dmitriy Sobolev <[email protected]>
f16b5d9
Separate
radix_sort
andradix_sort_by_key
.Pros:
Cons:
I assume that benefits outweigh drawbacks specifically from a user perspective.
This PR was motivated by this discussion: #1583 (comment)