-
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
Remove NumPy argument support for dpex kernels #866
Closed
Closed
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
- The compiler module only contains the compiler pipeline to compiler SpirvKernel objects.
- Creates a separate module for the unpack and pack functions for kernel arguments. - The new API is intended for use from the Dispatcher class.
- The concept of a kernel was decoupled from the notion of dispatching of a kernel. The present implementation in compiler.py intermixes both things, making hard the separation of compute-follows-data based kernel launch and legacy `dpctl.device_context` based behavior. - Deprecates support for numpy arrays as kernel args. - Deprecates support for the square bracket notation using `__getitem__` to provide global and local ranges for a kernel launch. - Changes the behavior of specializing a kernel using only a signature. The new way to specialize will require a device type and a backend. - Improvements to exception messages using custom exceptions. - The new API is now inside `numba_dpex.core.kernel_interface`.
Fix docs rst
- Kernel specialization for specific signatures was fixed. - Specialization is only allowed for usm_ndarray. - Dispacther class was renamed as JitKernel. - decorators updated.
- print a better type name with keywords and all attributes. - store a fully qualified filter string in the type. - set the default address space to GLOBAL instead of None. - fix the unify function to test on usm_type, device, address space.
- Added unit tests for the kernel specialization feature. - Fix kernel decorator to support list of signatures. - Disallow JIT compilation of a specialized kernel and raise an exception.
diptorupd
force-pushed
the
refactor/kernel_interfaces
branch
from
January 11, 2023 23:46
1395e18
to
584d63b
Compare
Removed test_black_scholes.py. Renamed dppy to dpex in two test files.
- The compute follows data checking is now based on queue equality. - USMNdArray no longer requires usm_type and device during construction. It allows us to specialize an usm_ndarray only on ndims, layout and dtype. - No check for compute follows data for eager compilation. - Change caching to not require backend and device-type. - Fixes to test cases.
diptorupd
force-pushed
the
refactor/kernel_interfaces
branch
from
January 13, 2023 02:39
46e2e90
to
63acaee
Compare
…Python/numba-dpex into refactor/kernel_interfaces
…Python/numba-dpex into refactor/kernel_interfaces
diptorupd
force-pushed
the
refactor/kernel_interfaces
branch
4 times, most recently
from
January 18, 2023 22:04
637a04d
to
c74ea24
Compare
Superseded by #1049 |
7 tasks
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.
We will stop supporting NumPy arrays as arguments to kernel. The following API changes need to be made:
target.TypingContext
. Instead if a NumPy array argument is detected raise an exception.