Skip to content

Conversation

@zhaomaosu
Copy link
Contributor

We need to skip the check for private memory, otherwise OpenCL CPU device may generate false positive reports due to stack re-use in different threads. However, SPIR-V builts 'ToPrivate' doesn't work as expected on OpenCL CPU device. So we need to manually cleanup private shadow before each function exit point.

We need to skip the check for private memory, otherwise OpenCL CPU
device may generate false positive reports due to stack re-use in different
threads. However, SPIR-V builts 'ToPrivate' doesn't work as expected on
OpenCL CPU device. So we need to manually cleanup private shadow before
each function exit point.
@zhaomaosu zhaomaosu marked this pull request as ready for review April 1, 2025 01:42
@zhaomaosu zhaomaosu requested a review from a team as a code owner April 1, 2025 01:42
@zhaomaosu
Copy link
Contributor Author

@intel/llvm-gatekeepers, this PR is ready to be merged. Thanks.

@zhaomaosu zhaomaosu requested a review from a team April 1, 2025 10:19
@bader
Copy link
Contributor

bader commented Apr 3, 2025

@intel/llvm-gatekeepers, this PR is ready to be merged. Thanks.

@intel/llvm-gatekeepers, ping.

@uditagarwal97 uditagarwal97 merged commit 816a8da into intel:sycl Apr 3, 2025
23 checks passed
@zhaomaosu zhaomaosu deleted the tsan-cleanup-private-shadow branch April 3, 2025 05:35
KornevNikita pushed a commit that referenced this pull request May 27, 2025
We need to skip the check for private memory, otherwise OpenCL CPU
device may generate false positive reports due to stack re-use in
different threads. However, SPIR-V builts 'ToPrivate' doesn't work as
expected on OpenCL CPU device. So we need to manually cleanup private
shadow before each function exit point.
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.

4 participants