File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
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 @@ -718,6 +718,8 @@ endif
718
718
ifeq ($(F_COMPILER), GFORTRAN)
719
719
CCOMMON_OPT += -DF_INTERFACE_GFORT
720
720
FCOMMON_OPT += -Wall
721
+ # make single-threaded LAPACK calls thread-safe #1847
722
+ FCOMMON_OPT += -frecursive
721
723
#Don't include -lgfortran, when NO_LAPACK=1 or lsbcc
722
724
ifneq ($(NO_LAPACK), 1)
723
725
EXTRALIB += -lgfortran
You can’t perform that action at this time.
0 commit comments