Skip to content

Allow setting local_accessors as kernel arguments in DPCTLQueue_Submit - #1558

Merged
diptorupd merged 15 commits into
masterfrom
feature/local_accessor_kernel_arg
Mar 11, 2024
Merged

diptorupd merged 15 commits into
masterfrom
feature/local_accessor_kernel_arg

Conversation

@diptorupd

Copy link
Copy Markdown
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
@github-actions

github-actions Bot commented Feb 22, 2024 •

Copy link
Copy Markdown

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

@coveralls

coveralls commented Feb 22, 2024 •

Copy link
Copy Markdown
Collaborator

Coverage Status

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

@github-actions

Copy link
Copy Markdown

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

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Mar 2, 2024

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Mar 6, 2024

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Mar 8, 2024

Copy link
Copy Markdown

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

1 similar comment
@github-actions

github-actions Bot commented Mar 8, 2024

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Mar 8, 2024

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Mar 9, 2024

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@oleksandr-pavlyk oleksandr-pavlyk left a comment

Copy link
Copy Markdown
Contributor

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
@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