-
Notifications
You must be signed in to change notification settings - Fork 30
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
Sycl kernel api #970
Sycl kernel api #970
Conversation
Nullptr is also handled, interpreting it as "default_name". Pybind11 caster provides a fixed name 'dpctl4pybind11_kernel'
New checks are complete with docstrings, check for SyclKernel_Make also checks the nullptr for name usage.
View rendered docs @ https://intelpython.github.io/dpctl/pulls/970/index.html |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_27 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_28 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_29 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_30 ran successfully. |
…le_Copy Also change commented out, or preprocessor disabled code for testing, implementing, or declaring DCPTLKernel_GetMaxSubGroupsSize since it is now supported in 2023 compiler.
63e4e98
to
ea19360
Compare
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_30 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_31 ran successfully. |
@ndgrigorian The I removed while refactoring from use of deprecated |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_32 ran successfully. |
…API functions dpctl_capi constructor must initialize DPCTLKernel_GetKernelRef_ and DPCTLKernelBundle_GetKernelBundleRef_ for casters to work correctly.
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_35 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_43 ran successfully. |
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, thanks for writing the tests
import dpctl.tensor as dpt | ||
|
||
q = dpctl.SyclQueue() | ||
|
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.
Some documentation is warranted. I know what the example is doing, but not every user will know or should be expected to know just by reading the code.
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 a general comment about the state of dpctl4pybind11.hpp
. The file needs API docs and we should generate the API doc and add it to our documentation page.
I am going to push suggested changes, which will dismiss approvals. I am going to wait for @chengjunlu's feedback and merge this tomorrow. |
49efb61
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_44 ran successfully. |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_45 ran successfully. |
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
Array API standard conformance tests for dpctl=0.14.0dev1=py310h8c27c75_45 ran successfully. |
This PR add Cython generated c-api for
dpctl.program.SyclKernel
anddpctl.program.SyclProgram
classes.dpctl4pybind11 adds type casters to map
dpctl.program.SyclKernel
tosycl::kernel
anddpctl.program.SyclProgram
tosycl::kernel_bundle<sycl::bundle_state::executable>
.This PR closes #943.