-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[openmp][test] The gtid.cpp
test case fails when OpenMP has been built with -DLIBOMP_ENABLE_SHARED=False
#113436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@llvm/issue-subscribers-openmp Author: Paul Osmialowski (pawosm-arm)
With OpenMP built with the `-DLIBOMP_ENABLE_SHARED=False` CMake flag, the `openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp` test case is failing as the linker complains that the `__kmp_hidden_helper_threads_num` symbol is defined in both `libomp.a` and `gtid.cpp`. In `gtid.cpp` it is defined globally as such:
There is one more test case which also defines
Shouldn't it be |
@TerryLWilmarth Do we really have to support building |
I have a debugger test suite which builds test cases with and without |
Hi Shilei, |
A somewhat more general question, is this test case correct in defining this variable global without |
For this bug, the test should just rename that variable to something without the _kmp* prefix. The __kmp, __kmpc, kmp, pseudo-namespaces are meant for the Intel and LLVM OpenMP runtime. |
Thank you @shiltian |
With OpenMP built with the
-DLIBOMP_ENABLE_SHARED=False
CMake flag, theopenmp/runtime/test/tasking/hidden_helper_task/gtid.cpp
test case is failing as the linker complains that the__kmp_hidden_helper_threads_num
symbol is defined in bothlibomp.a
andgtid.cpp
. Ingtid.cpp
it is defined globally as such:There is one more test case which also defines
kmp_int32 __kmp_hidden_helper_threads_num
, it is theopenmp/runtime/test/worksharing/for/kmp_sch_simd_guided.c
test case and it defines it as such:Shouldn't it be
static
in thegtid.cpp
test case too?The text was updated successfully, but these errors were encountered: