Skip to content
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

Allow setting local_accessors as kernel arguments in DPCTLQueue_Submit #1558

Merged
merged 15 commits into from
Mar 11, 2024

Conversation

diptorupd
Copy link
Contributor

  • Have you provided a meaningful PR description?

The libsyclinterface library provides a minimal C API interface to submit kernels to a sycl::queue and use the sycl::handler classes set_arg to set the arguments with which to launch a kernel.

The PR adds a way to create a local_accessor object from a set of required metadata: rank, dtype, shape, and then add the local_accessor as a kernel argument. To enable the changes, the DPCTLKernelArgType enum was expanded and necessary changes made to the queue interface.

The changes are still a work in progress and need test cases. The PR is opened to get early feedback and evaluate the feasibility of the approach.

  • 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?
  • If this PR is a work in progress, are you opening the PR as a draft?

@diptorupd diptorupd marked this pull request as draft February 22, 2024 06:20
Copy link

github-actions bot commented Feb 22, 2024

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

@coveralls
Copy link
Collaborator

coveralls commented Feb 22, 2024

Coverage Status

coverage: 87.824% (+0.08%) from 87.743%
when pulling 0da6390 on feature/local_accessor_kernel_arg
into 13f4443 on master.

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_18 ran successfully.
Passed: 907
Failed: 0
Skipped: 88

Copy link
Collaborator

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, modulo a nit comment. Thank you @diptorupd

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_38 ran successfully.
Passed: 904
Failed: 2
Skipped: 94

@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch from 9e0754f to 1589677 Compare March 1, 2024 23:27
Copy link

github-actions bot commented Mar 2, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_49 ran successfully.
Passed: 904
Failed: 2
Skipped: 94

@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch from 1589677 to e6f4f55 Compare March 6, 2024 02:13
Copy link

github-actions bot commented Mar 6, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_63 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch 2 times, most recently from 22abbee to 4023e87 Compare March 7, 2024 17:07
@diptorupd diptorupd marked this pull request as ready for review March 8, 2024 05:00
@diptorupd diptorupd changed the title WIP: Allow setting local_accessors as kernel arguments in DPCTLQueue_Submit Allow setting local_accessors as kernel arguments in DPCTLQueue_Submit Mar 8, 2024
@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch from 0b9caa6 to 41e5abb Compare March 8, 2024 05:06
Copy link

github-actions bot commented Mar 8, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_70 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

1 similar comment
Copy link

github-actions bot commented Mar 8, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_70 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch from 41e5abb to 37d6de8 Compare March 8, 2024 17:04
Diptorup Deb added 2 commits March 8, 2024 13:41
    - Adds support in libsyclinterface:: dpctl_sycl_queue_interface for
      sycl::local_accessor as kernel arguments.
    - Refactoring to get rid of compiler warnings.
@diptorupd diptorupd force-pushed the feature/local_accessor_kernel_arg branch from 37d6de8 to f288a2a Compare March 8, 2024 19:41
Copy link

github-actions bot commented Mar 8, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_75 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

…ocal-accessor-kernel-arg-type

Add local_accessor kernel_arg_type
Copy link

github-actions bot commented Mar 9, 2024

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_78 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

Copy link

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_88 ran successfully.
Passed: 906
Failed: 0
Skipped: 94

@oleksandr-pavlyk oleksandr-pavlyk self-requested a review March 11, 2024 19:22
Copy link
Collaborator

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you @diptorupd !

@diptorupd diptorupd enabled auto-merge March 11, 2024 19:39
@diptorupd diptorupd disabled auto-merge March 11, 2024 19:39
@diptorupd diptorupd merged commit 5f08828 into master Mar 11, 2024
49 checks passed
@diptorupd diptorupd deleted the feature/local_accessor_kernel_arg branch March 11, 2024 19:39
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.

3 participants