-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add sycl event #1134
Conversation
b62880c
to
681a232
Compare
a0ce2a2
to
eb2c88c
Compare
error: | ||
// If the check failed then decrement the refcount and return an error | ||
// code of -1. | ||
// Decref the Pyobject of the array |
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.
The comment needs to be removed as well.
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.
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.
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.
We need to check if numba does it for us out of the box.
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.
Approved with some minor changes.
eb2c88c
to
95f35ef
Compare
Add sycl event 26cba6c
Add dpctl.SyclEvent to numba friendly types, so that we can convert kernel dispatcher into @dpjit function.
Closes: #1137