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

Fence all registered SYCL queues before deallocating memory #4086

Merged

Conversation

masterleinad
Copy link
Contributor

Supersedes #4079. Without this, Kokkos::resize() would run into issues (deallocating memory before the copy kernel was finished) when trying to improve the fencing behavior of the SYCL backend.
We fence all sycl::queues that can reasonably access the memory asynchronously that we are trying to deallocate.

@crtrott
Copy link
Member

crtrott commented Jun 9, 2021

I mean resize is just a symptom, user code would have the same problem: kokkos_malloc, launch a kernel, kokkos_free ...

@crtrott crtrott merged commit 670ffa4 into kokkos:develop Jun 9, 2021
@masterleinad masterleinad deleted the sycl_fence_before_deallocating branch June 9, 2021 14:52
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.

None yet

2 participants