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

Add sycl event #1134

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Add sycl event #1134

merged 1 commit into from
Sep 29, 2023

Conversation

ZzEeKkAa
Copy link
Contributor

@ZzEeKkAa ZzEeKkAa commented Sep 21, 2023

Add dpctl.SyclEvent to numba friendly types, so that we can convert kernel dispatcher into @dpjit function.

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

Closes: #1137

@ZzEeKkAa ZzEeKkAa self-assigned this Sep 21, 2023
@ZzEeKkAa ZzEeKkAa force-pushed the feature/add_sycl_event branch 6 times, most recently from b62880c to 681a232 Compare September 28, 2023 14:33
@ZzEeKkAa ZzEeKkAa changed the title WIP: Add sycl event Add sycl event Sep 28, 2023
@ZzEeKkAa ZzEeKkAa marked this pull request as ready for review September 28, 2023 14:36
@ZzEeKkAa ZzEeKkAa requested a review from diptorupd as a code owner September 28, 2023 14:36
@ZzEeKkAa ZzEeKkAa force-pushed the feature/add_sycl_event branch 7 times, most recently from a0ce2a2 to eb2c88c Compare September 29, 2023 17:18
@ZzEeKkAa ZzEeKkAa enabled auto-merge September 29, 2023 17:18
error:
// If the check failed then decrement the refcount and return an error
// code of -1.
// Decref the Pyobject of the array
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment needs to be removed as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's reconsider if we still need this inc/dec ref. Still the case when it used asynchronously from the python flow may cause gc to deallocate object. It is not a case with numpy in numba because we are doing incref for memory data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to check if numba does it for us out of the box.

Copy link
Contributor

@diptorupd diptorupd left a comment

Choose a reason for hiding this comment

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

Approved with some minor changes.

@ZzEeKkAa ZzEeKkAa force-pushed the feature/add_sycl_event branch from eb2c88c to 95f35ef Compare September 29, 2023 21:00
@ZzEeKkAa ZzEeKkAa merged commit 26cba6c into main Sep 29, 2023
12 of 22 checks passed
@ZzEeKkAa ZzEeKkAa deleted the feature/add_sycl_event branch September 29, 2023 23:09
github-actions bot added a commit that referenced this pull request Sep 29, 2023
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.

[DpctlSyclEvent] Create syclevent data model, numba-friendly type and register it in numba
2 participants