-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Guard access to sampler and kernel objects with a mutex #5232
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
@smaslov-intel Could you please take a look. |
return PI_SUCCESS; | ||
} | ||
|
||
pi_result piKernelRelease(pi_kernel Kernel) { | ||
|
||
PI_ASSERT(Kernel, PI_INVALID_KERNEL); | ||
auto KernelProgram = Kernel->Program; |
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.
Can you move this under the lock below?
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.
Moved under the lock, thx.
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.
Sorry for delayed update. I was able to address your comment after #6168 got landed.
return PI_SUCCESS; | ||
} | ||
|
||
pi_result piKernelRelease(pi_kernel Kernel) { | ||
|
||
PI_ASSERT(Kernel, PI_INVALID_KERNEL); | ||
auto KernelProgram = Kernel->Program; |
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.
Moved under the lock, thx.
…ntel#5232) Protect access to all the non-const member variables of the sampler and kernel classes with a mutex to improve thread-safety.
No description provided.