summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-06-27 18:33:09 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-06-27 18:33:09 +0000
commitbb55ece2692e290daf930738dd636a1375e9f261 (patch)
treeb10f52cf5c4d6f19d1204dcb587808bc6ec7e395 /llvm/docs/CommandGuide
parent774eabd0978bce8dcd8d39400476ee62f93dc563 (diff)
downloadbcm5719-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud