[Openmp-commits] [openmp] [OpenMP] Fix the test issue when `libomp` is built as a static library (PR #113522)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 23 21:36:18 PDT 2024
https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/113522
Fixes #113436.
>From 27b6f28268d1a16163c358062ebc0261619e9fbe Mon Sep 17 00:00:00 2001
From: Shilei Tian <i at tianshilei.me>
Date: Thu, 24 Oct 2024 00:35:53 -0400
Subject: [PATCH] [OpenMP] Fix the test issue when `libomp` is built as a
static library
Fixes #113436.
---
openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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