Skip to content

Commit

Permalink
Merge pull request #7 from STEllAR-GROUP/hpxmp_fix_gid
Browse files Browse the repository at this point in the history
Prevent OMP using thread local storage for storing gtid
  • Loading branch information
Pansysk75 authored Sep 9, 2023
2 parents 472e764 + 2b52e3e commit 31d2f13
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 31d2f13

Please sign in to comment.