forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][Reduction] Group counter should use at least memory_order::acq…
…_rel From https://en.cppreference.com/w/cpp/atomic/memory_order: > Atomic operations tagged memory_order_relaxed are not synchronization > operations; they do not impose an order among concurrent memory > accesses. They only guarantee atomicity and modification order > consistency. Yet we want to use that counter exactly for the synchronization purposes - to decide which WG finished last and should perform the final step. The same issue had been fixed in DPC++ at intel/llvm#8058.
- Loading branch information
1 parent
9081d36
commit 89a4234
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters