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 wait or ignore for all async copies #645

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephenswat
Copy link
Member

Using acts-project/vecmem#286 I was able to find a few more cases where we do not properly wait for or ignore events. In this PR I opted to add those missing statements according to a simple heuristic, i.e. I added waits for all SYCL and share code and I added ignores for all CUDA code. Reason for this is that CUDA events are stream-ordered, so you can't really shoot yourself in the foot too much. SYCL events, on the other hand, are unordered, so they need stricted checking.

Using acts-project/vecmem#286 I was able to find
a few more cases where we do not properly wait for or ignore events. In
this PR I opted to add those missing statements according to a simple
heuristic, i.e. I added waits for all SYCL and share code and I added
ignores for all CUDA code. Reason for this is that CUDA events are
stream-ordered, so you can't really shoot yourself in the foot too much.
SYCL events, on the other hand, are unordered, so they need stricted
checking.
@stephenswat stephenswat added bug Something isn't working cuda Changes related to CUDA sycl Changes related to SYCL labels Jul 17, 2024
@stephenswat
Copy link
Member Author

@krasznaa Just so you're also aware of this. Will rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda Changes related to CUDA sycl Changes related to SYCL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant