File tree Expand file tree Collapse file tree 4 files changed +1614
-115
lines changed Expand file tree Collapse file tree 4 files changed +1614
-115
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,13 @@ BUILD_LAPACK_DEPRECATED = 1
107
107
# BUILD_RELAPACK = 1
108
108
109
109
# If you want to use legacy threaded Level 3 implementation.
110
- # USE_SIMPLE_THREADED_LEVEL3 = 1
110
+ USE_SIMPLE_THREADED_LEVEL3 = 1
111
+
112
+ # If you want to use the new, still somewhat experimental code that uses
113
+ # thread-local storage instead of a central memory buffer in memory.c
114
+ # Note that if your system uses GLIBC, it needs to have at least glibc 2.21
115
+ # for this to work.
116
+ USE_TLS = 1
111
117
112
118
# If you want to drive whole 64bit region by BLAS. Not all Fortran
113
119
# compiler supports this. It's safe to keep comment it out if you
Original file line number Diff line number Diff line change @@ -1018,6 +1018,10 @@ ifdef USE_SIMPLE_THREADED_LEVEL3
1018
1018
CCOMMON_OPT += -DUSE_SIMPLE_THREADED_LEVEL3
1019
1019
endif
1020
1020
1021
+ ifdef USE_TLS
1022
+ CCOMMON_OPT += -DUSE_TLS
1023
+ endif
1024
+
1021
1025
ifndef SYMBOLPREFIX
1022
1026
SYMBOLPREFIX =
1023
1027
endif
Original file line number Diff line number Diff line change @@ -214,6 +214,10 @@ if (CONSISTENT_FPCSR)
214
214
set (CCOMMON_OPT "${CCOMMON_OPT} -DCONSISTENT_FPCSR" )
215
215
endif ()
216
216
217
+ if (USE_TLS )
218
+ set (CCOMMON_OPT "${CCOMMON_OPT} -DUSE_TLS" )
219
+ endif ()
220
+
217
221
# Only for development
218
222
# set(CCOMMON_OPT "${CCOMMON_OPT} -DPARAMTEST")
219
223
# set(CCOMMON_OPT "${CCOMMON_OPT} -DPREFETCHTEST")
You can’t perform that action at this time.
0 commit comments