diff options
Diffstat (limited to 'openmp/libomptarget/deviceRTLs/common/src/support.cu')
| -rw-r--r-- | openmp/libomptarget/deviceRTLs/common/src/support.cu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openmp/libomptarget/deviceRTLs/common/src/support.cu b/openmp/libomptarget/deviceRTLs/common/src/support.cu index 44a42e172f2..2f992f2778e 100644 --- a/openmp/libomptarget/deviceRTLs/common/src/support.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/support.cu @@ -212,7 +212,7 @@ DEVICE void IncParallelLevel(bool ActiveParallel, __kmpc_impl_lanemask_t Mask) { if (Rank == 0) { parallelLevel[GetWarpId()] += (1 + (ActiveParallel ? OMP_ACTIVE_PARALLEL_LEVEL : 0)); - __threadfence(); + __kmpc_impl_threadfence(); } __kmpc_impl_syncwarp(Mask); } @@ -224,7 +224,7 @@ DEVICE void DecParallelLevel(bool ActiveParallel, __kmpc_impl_lanemask_t Mask) { if (Rank == 0) { parallelLevel[GetWarpId()] -= (1 + (ActiveParallel ? OMP_ACTIVE_PARALLEL_LEVEL : 0)); - __threadfence(); + __kmpc_impl_threadfence(); } __kmpc_impl_syncwarp(Mask); } |

