[Openmp-commits] [openmp] 5d07162 - [OpenMP] Fix the test issue when `libomp` is built as a static library (#113522)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Oct 24 09:52:21 PDT 2024


Author: Shilei Tian
Date: 2024-10-24T12:52:17-04:00
New Revision: 5d07162bba0648f5a5733039a7795eb7e9913863

URL: https://github.com/llvm/llvm-project/commit/5d07162bba0648f5a5733039a7795eb7e9913863
DIFF: https://github.com/llvm/llvm-project/commit/5d07162bba0648f5a5733039a7795eb7e9913863.diff

LOG: [OpenMP] Fix the test issue when `libomp` is built as a static library (#113522)

Added: 
    

Modified: 
    openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp b/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp
index bc02caccb69ed9..9a07564406f7f9 100644
--- a/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp
+++ b/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp
@@ -43,7 +43,7 @@ struct anon {
 };
 }
 
-kmp_int32 __kmp_hidden_helper_threads_num;
+static kmp_int32 __kmp_hidden_helper_threads_num;
 
 kmp_int32 omp_task_entry(kmp_int32 gtid, kmp_task_t_with_privates *task) {
   auto shareds = reinterpret_cast<anon *>(task->task.shareds);


        


More information about the Openmp-commits mailing list