Skip to content

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

Merged
merged 11 commits into from
Mar 11, 2025
Merged

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Feb 10, 2025

This PR adds _md_local_accessor Cython struct in _backend.pxd that ties to MDLocalAccessor struct defined in libsyclinterface, and which is to be used to indicate local_accessor kernel argument type (see test file in syclinterface library).

_sycl_queue.pyx then defines LocalAccessor type, constructible using LocalAccessor(ndim, typestr, dim0, dim1, dim2) constuctor. The ndim argument represents accessor dimensionality (only values 1, 2, or 3 are supported). The typestr can be "i1", "u1", "i2", "u2", "i4", "u4", "i8", "u8", "f4", or "f8".

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

Copy link

github-actions bot commented Feb 10, 2025

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_518 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

Copy link

Array API standard conformance tests for dpctl= ran successfully.
Passed: 894
Failed: 2
Skipped: 118

@coveralls
Copy link
Collaborator

coveralls commented Feb 17, 2025

Coverage Status

coverage: 87.652% (-0.2%) from 87.855%
when pulling 1d3453e on add-md-local-accessor
into 96da90b on master.

Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_540 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

@ndgrigorian ndgrigorian force-pushed the add-md-local-accessor branch from ff43ac7 to e1e4b00 Compare February 27, 2025 08:38
Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

@ndgrigorian ndgrigorian force-pushed the add-md-local-accessor branch from e1e4b00 to 949571b Compare February 27, 2025 19:14
Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully.
Passed: 893
Failed: 3
Skipped: 118

@ndgrigorian ndgrigorian force-pushed the add-md-local-accessor branch from 949571b to f35e483 Compare February 27, 2025 22:22
Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_11 ran successfully.
Passed: 896
Failed: 1
Skipped: 125

@ndgrigorian ndgrigorian force-pushed the add-md-local-accessor branch from f35e483 to 5fc86c6 Compare March 7, 2025 21:22
Copy link

github-actions bot commented Mar 7, 2025

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_41 ran successfully.
Passed: 895
Failed: 2
Skipped: 126

…parate integer arguments

Update test for LocalAccessor kernel submission
@ndgrigorian ndgrigorian requested a review from sommerlukas March 8, 2025 08:24
Copy link

github-actions bot commented Mar 8, 2025

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_42 ran successfully.
Passed: 894
Failed: 3
Skipped: 126

ndgrigorian
ndgrigorian previously approved these changes Mar 10, 2025
vtavana
vtavana previously approved these changes Mar 11, 2025
Copy link
Collaborator

@vtavana vtavana left a 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
@ndgrigorian ndgrigorian dismissed stale reviews from vtavana and themself via 1d3453e March 11, 2025 00:32
@ndgrigorian ndgrigorian requested a review from vtavana March 11, 2025 00:32
Copy link

Array API standard conformance tests for dpctl=0.20.0dev0=py310h93fe807_45 ran successfully.
Passed: 895
Failed: 2
Skipped: 126

@ndgrigorian ndgrigorian merged commit c3e6952 into master Mar 11, 2025
73 of 74 checks passed
@ndgrigorian ndgrigorian deleted the add-md-local-accessor branch March 11, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants