-
Notifications
You must be signed in to change notification settings - Fork 772
[SYCL][CUDA] Use context mutex in refcount inc/dec #6577
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
Conversation
Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
@JackAKirk On second thought, shouldn't this patch do effectively nothing except add some overhead since |
Yes you are right... sorry, can this commit be reverted? I was too quick with this, the problem appeared to start soon after a commit that added additional usage of incrementing the ref count. I'll continue investigating #6463 |
@JackAKirk I think it should be, please open a PR with the revert. |
OK sure |
Here it is #6603 |
context wasn't using its mutex when incrementing/decrementing the ref count, even though multiple threads may attempt this at the same time in multithreaded applications such as in assert_in_simultaneously_multiple_tus.cpp. This may fix #6463 but I can't be sure of this because I can't reproduce flaky CI test failures in #6463 locally.
Signed-off-by: JackAKirk jack.kirk@codeplay.com