Skip to content

[openmp][test] The gtid.cpp test case fails when OpenMP has been built with -DLIBOMP_ENABLE_SHARED=False #113436

Closed
@pawosm-arm

Description

@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:

kmp_int32 __kmp_hidden_helper_threads_num;

There is one more test case which also defines kmp_int32 __kmp_hidden_helper_threads_num, it is the openmp/runtime/test/worksharing/for/kmp_sch_simd_guided.c test case and it defines it as such:

static int __kmp_hidden_helper_threads_num = 0;

Shouldn't it be static in the gtid.cpp test case too?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions