[Openmp-commits] [PATCH] D55370: [OPENMP][NVPTX]Fix __kmpc_flush to flush the memory per system, not per block.

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Dec 6 07:31:21 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL348491: [OPENMP][NVPTX]Fix __kmpc_flush to flush the memory per system, not per block. (authored by ABataev, committed by ).
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55370/new/

https://reviews.llvm.org/D55370

Files:
  openmp/trunk/libomptarget/deviceRTLs/nvptx/src/sync.cu


Index: openmp/trunk/libomptarget/deviceRTLs/nvptx/src/sync.cu
===================================================================
--- openmp/trunk/libomptarget/deviceRTLs/nvptx/src/sync.cu
+++ openmp/trunk/libomptarget/deviceRTLs/nvptx/src/sync.cu
@@ -132,7 +132,7 @@
 
 EXTERN void __kmpc_flush(kmp_Ident *loc) {
   PRINT0(LD_IO, "call kmpc_flush\n");
-  __threadfence_block();
+  __threadfence_system();
 }
 
 ////////////////////////////////////////////////////////////////////////////////


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55370.176973.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181206/ea235044/attachment.bin>


More information about the Openmp-commits mailing list