[Openmp-commits] [openmp] a3a741c - [OpenMP][FIX] Update device API to match recent changes

Johannes Doerfert via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 5 08:08:02 PDT 2022


Author: Johannes Doerfert
Date: 2022-10-05T08:07:38-07:00
New Revision: a3a741c0bbb22c93f20941cb191e6638e9880b33

URL: https://github.com/llvm/llvm-project/commit/a3a741c0bbb22c93f20941cb191e6638e9880b33
DIFF: https://github.com/llvm/llvm-project/commit/a3a741c0bbb22c93f20941cb191e6638e9880b33.diff

LOG: [OpenMP][FIX] Update device API to match recent changes

Added: 
    

Modified: 
    openmp/libomptarget/DeviceRTL/src/Synchronization.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp b/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp
index 85d75bf3a1b1..4b16e2e02800 100644
--- a/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp
@@ -298,11 +298,11 @@ void namedBarrier() {
                : "memory");
 }
 
-void fenceTeam(int) { __nvvm_membar_cta(); }
+void fenceTeam(atomic::OrderingTy) { __nvvm_membar_cta(); }
 
-void fenceKernel(int) { __nvvm_membar_gl(); }
+void fenceKernel(atomic::OrderingTy) { __nvvm_membar_gl(); }
 
-void fenceSystem(int) { __nvvm_membar_sys(); }
+void fenceSystem(atomic::OrderingTy) { __nvvm_membar_sys(); }
 
 void syncWarp(__kmpc_impl_lanemask_t Mask) { __nvvm_bar_warp_sync(Mask); }
 


        


More information about the Openmp-commits mailing list