diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-29 19:22:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-29 19:22:06 +0000 |
commit | 7512891e635e867ceabdd6d37405b684ac828231 (patch) | |
tree | a77d10cde516bdc65ac3fe3c680230b60aea5a69 /libomptarget/deviceRTLs/nvptx/src/sync.cu | |
parent | 4ae92ac4ef3db2921638a824d9f0ee220732da64 (diff) |
[OPENMP][NVPTX] Replace assert() by ASSERT0() macro, NFC.
Required to fix the buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@340956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'libomptarget/deviceRTLs/nvptx/src/sync.cu')
-rw-r--r-- | libomptarget/deviceRTLs/nvptx/src/sync.cu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libomptarget/deviceRTLs/nvptx/src/sync.cu b/libomptarget/deviceRTLs/nvptx/src/sync.cu index ba11f62..0a99405 100644 --- a/libomptarget/deviceRTLs/nvptx/src/sync.cu +++ b/libomptarget/deviceRTLs/nvptx/src/sync.cu @@ -42,7 +42,8 @@ EXTERN int32_t __kmpc_cancel_barrier(kmp_Indent *loc_ref, int32_t tid) { EXTERN void __kmpc_barrier(kmp_Indent *loc_ref, int32_t tid) { if (isRuntimeUninitialized()) { - assert(isSPMDMode() && "Expected SPMD mode with uninitialized runtime."); + ASSERT0(LT_FUSSY, isSPMDMode(), + "Expected SPMD mode with uninitialized runtime."); __kmpc_barrier_simple_spmd(loc_ref, tid); } else { tid = GetLogicalThreadIdInBlock(); |