-
Notifications
You must be signed in to change notification settings - Fork 31
Expose LocalAccessor as kernel argument type #1991
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
Conversation
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_518 ran successfully. |
|
Array API standard conformance tests for dpctl= ran successfully. |
|
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_540 ran successfully. |
ff43ac7 to
e1e4b00
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
e1e4b00 to
949571b
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
949571b to
f35e483
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully. |
…uments LocalAccessor(ndim, elemental_type_str, dim0, dim1, dim2) The elemental type can be one of the following: "i1", "u1", "i2", "u2", "i4", "u4", "i8", "u8", "f4", "f8"
Fixes conflict with built-in `type`
Also improve messages in errors
f35e483 to
5fc86c6
Compare
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_41 ran successfully. |
…parate integer arguments Update test for LocalAccessor kernel submission
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_42 ran successfully. |
vtavana
left a comment
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.
Thank you, @ndgrigorian, for finalizing it!
Also slips in a fix to the shape of the local_accessor
|
Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_45 ran successfully. |
This PR adds
_md_local_accessorCython struct in_backend.pxdthat ties toMDLocalAccessorstruct defined in libsyclinterface, and which is to be used to indicate local_accessor kernel argument type (see test file in syclinterface library)._sycl_queue.pyxthen definesLocalAccessortype, constructible usingLocalAccessor(ndim, typestr, dim0, dim1, dim2)constuctor. Thendimargument represents accessor dimensionality (only values 1, 2, or 3 are supported). Thetypestrcan be"i1","u1","i2","u2","i4","u4","i8","u8","f4", or"f8".