[OpenMP] Add `abort` to `FATAL_MESSAGE`
authorShilei Tian <i@tianshilei.me>
Mon, 12 Dec 2022 03:41:22 +0000 (22:41 -0500)
committerShilei Tian <i@tianshilei.me>
Mon, 12 Dec 2022 03:41:22 +0000 (22:41 -0500)
openmp/libomptarget/include/Debug.h

index 4e7da8b..47c292c 100644 (file)
@@ -128,6 +128,7 @@ inline uint32_t getDebugLevel() {
   do {                                                                         \
     fprintf(stderr, GETNAME(TARGET_NAME) " error: ");                          \
     fprintf(stderr, __VA_ARGS__);                                              \
+    abort();                                                                   \
   } while (0)
 
 /// Print a generic information string used if LIBOMPTARGET_INFO=1