[Openmp-commits] [openmp] 010a5a7 - [OpenMP] Fix build issue with `libomp` when OMPT is disabled
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Wed Sep 6 20:40:46 PDT 2023
Author: Shilei Tian
Date: 2023-09-06T23:40:24-04:00
New Revision: 010a5a737b7585b92c3adb54bd97d803f3116dd9
URL: https://github.com/llvm/llvm-project/commit/010a5a737b7585b92c3adb54bd97d803f3116dd9
DIFF: https://github.com/llvm/llvm-project/commit/010a5a737b7585b92c3adb54bd97d803f3116dd9.diff
LOG: [OpenMP] Fix build issue with `libomp` when OMPT is disabled
Added:
Modified:
openmp/runtime/src/kmp_csupport.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp_csupport.cpp b/openmp/runtime/src/kmp_csupport.cpp
index fb79adb936412c..9eeaeb88fb9ec7 100644
--- a/openmp/runtime/src/kmp_csupport.cpp
+++ b/openmp/runtime/src/kmp_csupport.cpp
@@ -351,7 +351,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
} else {
__kmpc_serialized_parallel(loc, gtid);
-#ifdef OMPT_SUPPORT
+#if OMPT_SUPPORT
void *exit_frame_ptr;
#endif
@@ -359,7 +359,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
__kmp_invoke_microtask(VOLATILE_CAST(microtask_t) microtask, gtid,
/*npr=*/0,
/*argc=*/1, &args
-#ifdef OMPT_SUPPORT
+#if OMPT_SUPPORT
,
&exit_frame_ptr
#endif
@@ -369,7 +369,7 @@ void __kmpc_fork_call_if(ident_t *loc, kmp_int32 argc, kmpc_micro microtask,
/*npr=*/0,
/*argc=*/0,
/*args=*/nullptr
-#ifdef OMPT_SUPPORT
+#if OMPT_SUPPORT
,
&exit_frame_ptr
#endif
More information about the Openmp-commits
mailing list