File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,15 +42,14 @@ FCOMMON_OPT += -O2 -qrecur -qnosave
4242else
4343FCOMMON_OPT += -O2 -frecursive -fno-fast-math
4444endif
45- ifeq ($(C_COMPILER), GCC)
45+
46+ ifeq ($(F_COMPILER), GFORTRAN)
4647ifneq ($(GCCVERSIONGT4), 1)
4748$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
4849FCOMMON_OPT += -mcpu=power8 -mtune=power8
4950else
5051FCOMMON_OPT += -mcpu=power9 -mtune=power9
5152endif
52- else
53- FCOMMON_OPT += -mcpu=power9 -mtune=power9
5453endif
5554else
5655FCOMMON_OPT += -O2 -Mrecursive
@@ -84,12 +83,16 @@ CCOMMON_OPT += -DUSE_OPENMP -fopenmp
8483else
8584CCOMMON_OPT += -DUSE_OPENMP -mp
8685endif
86+ ifeq ($(F_COMPILER), IBM)
87+ FCOMMON_OPT += -DUSE_OPENMP
88+ else
8789ifneq ($(F_COMPILER), PGI)
8890FCOMMON_OPT += -DUSE_OPENMP -fopenmp
8991else
9092FCOMMON_OPT += -DUSE_OPENMP -mp
9193endif
9294endif
95+ endif
9396
9497# workaround for C->FORTRAN ABI violation in LAPACKE
9598ifeq ($(F_COMPILER), GFORTRAN)
You can’t perform that action at this time.
0 commit comments