diff options
Diffstat (limited to 'openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h')
| -rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h b/openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h index c58bfc60358..9cdcc162dd4 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h @@ -101,7 +101,8 @@ INLINE int GetOmpThreadId(int threadId, bool isSPMDExecutionMode, int rc; if (isRuntimeUninitialized) { - assert(isSPMDExecutionMode && "Uninitialized runtime with non-SPMD mode."); + ASSERT0(LT_FUSSY, isSPMDExecutionMode, + "Uninitialized runtime with non-SPMD mode."); // For level 2 parallelism all parallel regions are executed sequentially. if (omptarget_nvptx_simpleThreadPrivateContext ->InL2OrHigherParallelRegion()) @@ -122,7 +123,8 @@ INLINE int GetNumberOfOmpThreads(int threadId, bool isSPMDExecutionMode, int rc; if (isRuntimeUninitialized) { - assert(isSPMDExecutionMode && "Uninitialized runtime with non-SPMD mode."); + ASSERT0(LT_FUSSY, isSPMDExecutionMode, + "Uninitialized runtime with non-SPMD mode."); // For level 2 parallelism all parallel regions are executed sequentially. if (omptarget_nvptx_simpleThreadPrivateContext ->InL2OrHigherParallelRegion()) |

