[Openmp-commits] [PATCH] D47903: [OpenMP] Use C++11 Atomics - barrier, tasking, and lock code
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 7 13:14:51 PDT 2018
jlpeyton created this revision.
jlpeyton added reviewers: AndreyChurbanov, tlwilmar.
jlpeyton added a project: OpenMP.
Herald added a subscriber: guansong.
These are preliminary changes that attempt to use C++11 Atomics in the runtime.
We are expecting better portability with this change across architectures/OSes.
Here is the summary of the changes.
- Most variables that need synchronization operation were converted to generic atomic variables (std::atomic<T>)
- Variables that are updated with combined CAS are packed into a single atomic variable, and partial read/write is done through unpacking/packing
Patch by Hansang Bae
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 77187 bytes
Desc: not available
More information about the Openmp-commits