diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-06-27 18:33:09 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-06-27 18:33:09 +0000 |
commit | bb55ece2692e290daf930738dd636a1375e9f261 (patch) | |
tree | b10f52cf5c4d6f19d1204dcb587808bc6ec7e395 /llvm/docs/CommandGuide/llvm-objdump.rst | |
parent | 774eabd0978bce8dcd8d39400476ee62f93dc563 (diff) | |
download | bcm5719-llvm-bb55ece2692e290daf930738dd636a1375e9f261.tar.gz bcm5719-llvm-bb55ece2692e290daf930738dd636a1375e9f261.zip |
[OPENMP][NVPTX]Relax flush directive.
Summary:
According to the OpenMP standard, flush makes a thread’s temporary view of memory consistent with memory and enforces an order on the memory operations of the variables explicitly specified or implied.
According to the Cuda toolkit documentation (https://docs.nvidia.com/cuda/archive/8.0/cuda-c-programming-guide/index.html#memory-fence-functions), __threadfence() functions provides required functionality.
__threadfence_system() also provides required functionality, but it also
includes some extra functionality, like synchronization of page-locked
host memory, synchronization for the host, etc. It is not required per
the standard and we can use more relaxed version of memory fence
operation.
Reviewers: grokos, gtbercea, kkwli0
Subscribers: guansong, jfb, jdoerfert, openmp-commits, caomhin
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D62397
llvm-svn: 364572
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
0 files changed, 0 insertions, 0 deletions