Skip to content

Commit

Permalink
Prevent OMP using thread local storage for storing gtid
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Sep 9, 2023
1 parent 472e764 commit 2b52e3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openmp/runtime/src/kmp_config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
#if ! KMP_MIC
# define USE_LOAD_BALANCE 1
#endif
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN)
#if ! (KMP_OS_WINDOWS || KMP_OS_DARWIN || HPXC)
# define KMP_TDATA_GTID 1
#endif
#if STUBS_LIBRARY
Expand Down
2 changes: 1 addition & 1 deletion openmp/runtime/src/kmp_global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ int __kmp_abort_delay = 0;
#if KMP_OS_LINUX && defined(KMP_TDATA_GTID)
int __kmp_gtid_mode = 3; /* use __declspec(thread) TLS to store gtid */
int __kmp_adjust_gtid_mode = FALSE;
#elif KMP_OS_WINDOWS
#elif KMP_OS_WINDOWS || defined(HPXC)
int __kmp_gtid_mode = 2; /* use TLS functions to store gtid */
int __kmp_adjust_gtid_mode = FALSE;
#else
Expand Down

0 comments on commit 2b52e3e

Please sign in to comment.