-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature/support sycl queue in array constructor functions #1032
Conversation
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.
Let's keep things simpler in these test files. For each function, we do these:
- call dpnp function with default argument
- call dpnp function with queue and pytest parameterized arguments
- call dpnp function with device and pytest parameteried arguments
- call dpnp with both queue and device (exception check)
numba_dpex/tests/types/USMNdArray/test_array_creation_errors.py
Outdated
Show resolved
Hide resolved
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.
Let's keep things simpler in these test files. For each function, we do these:
- call dpnp function with default argument
- call dpnp function with queue and pytest parameterized arguments
- call dpnp function with device and pytest parameteried arguments
- call dpnp with both queue and device (exception check)
9722585
to
f785652
Compare
f785652
to
9c61948
Compare
a5726e3
to
187b7a9
Compare
6414ebc
to
60d8783
Compare
60d8783
to
9fc29f0
Compare
1801d4d
to
65dcd1c
Compare
a39bc5d
to
43470c7
Compare
f53e8a1
to
d7cd285
Compare
I think it's ready for merge. @diptorupd |
7ed5b04
to
e9c0834
Compare
c923d92
to
11d44e0
Compare
- Enables using the queue keyword for dpnp array constructors. - Uses the DpctlSyclQueueRef for memory allocations and remove using a filter string to first create a queue. - Unit tests.
- Removes a queue copy during NRTExternalAllocator as the ownership of the passed in queue belongs to the NRTExternalAllocator and the extra copy introduced a memory leak. It is the caller's responsibility to do any queue copy if needed. - Reverts all superfluous naming changes to reduce the diff. - Fixes few docstrings that needed to be updated.
Refactored tests/core/types/USMNdArray/test_array_creation_errors.py, since we got rid of filter_string and USMNdArray allocates int64 by default, not float64, like they do in numpy and dpnp Need to use dpctl._sycl_queue_manager
Revert to original coverage.yml
Minor typo fix
11d44e0
to
50dcaec
Compare
…in_array_ctors Feature/support sycl queue in array constructor functions f54cdc1
Supersedes Fully enable DpctlSyclQueue handling in USMNdArray creation #1031 , Fully enable DpctlSyclQueue handling in USMNdArray creation #1022
Enables the
sycl_queue
keyword in the various dpnp array constructors (empty
,empty_like
,full
,full_like
,zeros
,zeros_like
,ones
,ones_like
). The passed in dpctl.SyclQueue or the one infered during type inference of thedpnp.ndarray
is used to allocate memory.The use of filter string in memory allocation is removed.
Improvements to the existing unit test cases and new ones.