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

Fix lifetime management for sycl queue #1190

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

ZzEeKkAa
Copy link
Contributor

@ZzEeKkAa ZzEeKkAa commented Oct 25, 2023

Memory lifetime wasn't set properly which resulted in core dumps of running kernels if boxed sycl event argument where destroyed by GC. New implementation wraps parent into MemInfo object and lifetime of the object is managed by it which is properly managed by numba's compiler.

Similar changes to #1188

  • 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 #1180

@ZzEeKkAa ZzEeKkAa self-assigned this Oct 25, 2023
@ZzEeKkAa ZzEeKkAa requested a review from diptorupd as a code owner October 25, 2023 14:35
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.

Thank you very much!

@diptorupd diptorupd merged commit a030c85 into main Oct 25, 2023
23 checks passed
@diptorupd diptorupd deleted the fix/sycl_queue_meminfo branch October 25, 2023 19:21
github-actions bot added a commit that referenced this pull request Oct 25, 2023
github-actions bot added a commit to chudur-budur/numba-dpex that referenced this pull request Nov 1, 2023
…eminfo

Fix lifetime management for sycl queue a030c85
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.

Fix data structure for dpctl.SyclEvent and dpctl.SyclQueue
2 participants