-
Notifications
You must be signed in to change notification settings - Fork 22
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
Implement extension for dpnp.choose
#2201
Merged
antonwolfy
merged 45 commits into
IntelPython:master
from
ndgrigorian:dedicated-choose-kernel
Feb 4, 2025
Merged
Implement extension for dpnp.choose
#2201
antonwolfy
merged 45 commits into
IntelPython:master
from
ndgrigorian:dedicated-choose-kernel
Feb 4, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c42f2ae
to
8793b54
Compare
Tests will need to be added in general, and especially to |
8793b54
to
e7f0a0b
Compare
antonwolfy
reviewed
Dec 10, 2024
antonwolfy
reviewed
Dec 11, 2024
904d629
to
70a85c3
Compare
antonwolfy
reviewed
Dec 12, 2024
antonwolfy
reviewed
Dec 12, 2024
antonwolfy
reviewed
Dec 13, 2024
ed84f7a
to
7642045
Compare
7642045
to
efa7e1c
Compare
8 tasks
efa7e1c
to
131308f
Compare
a54f420
to
0fb1fdf
Compare
925b7d8
to
dad41e3
Compare
Also corrects errors for unexpected dtype to TypeError to match NumPy
Logic now handles 0d inputs to _populate_choose_kernel_params to avoid dereferencing empty shape and strides of input arrays
Co-authored-by: Anton <[email protected]>
Fix spacing in choices type list Fix spacing in example arrays
py_choose now uses multiple functions to move host data for choose kernel parameters to the device
4ee9863
to
6609637
Compare
Please merge at your convenience, I won't be able to due to Sphinx build failure |
github-actions bot
added a commit
that referenced
this pull request
Feb 4, 2025
This PR implements a new SYCL kernel for `dpnp.choose` in a new extension, `_indexing_impl`. `choose` is an embarrassingly parallel copy operation, where the array to copy from is chosen from a list based on the index in the indices array. 7a782ae
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a new SYCL kernel for
dpnp.choose
in a new extension,_indexing_impl
.choose
is an embarrassingly parallel copy operation, where the array to copy from is chosen from a list based on the index in the indices array.