File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ NO_AFFINITY = 1
192
192
# Flags for POWER8 are defined in Makefile.power. Don't modify COMMON_OPT
193
193
# COMMON_OPT = -O2
194
194
195
- # gfortran option for LAPACK
196
- # enable this flag only on 64bit Linux and if you need a thread safe lapack library
195
+ # gfortran option for LAPACK to improve thread-safety
196
+ # It is enabled by default in Makefile.system for gfortran
197
197
# Flags for POWER8 are defined in Makefile.power. Don't modify FCOMMON_OPT
198
198
# FCOMMON_OPT = -frecursive
199
199
Original file line number Diff line number Diff line change @@ -725,6 +725,8 @@ endif
725
725
ifeq ($(F_COMPILER), GFORTRAN)
726
726
CCOMMON_OPT += -DF_INTERFACE_GFORT
727
727
FCOMMON_OPT += -Wall
728
+ # make single-threaded LAPACK calls thread-safe #1847
729
+ FCOMMON_OPT += -frecursive
728
730
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
729
731
ifneq ($(NO_LAPACK), 1)
730
732
EXTRALIB += -lgfortran
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ endif ()
44
44
45
45
if (${F_COMPILER} STREQUAL "GFORTRAN" )
46
46
set (CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_GFORT" )
47
- set (FCOMMON_OPT "${FCOMMON_OPT} -Wall" )
47
+ set (FCOMMON_OPT "${FCOMMON_OPT} -Wall -frecursive " )
48
48
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
49
49
if (NOT NO_LAPACK )
50
50
set (EXTRALIB "{EXTRALIB} -lgfortran" )
You can’t perform that action at this time.
0 commit comments