File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,14 @@ FCOMMON_OPT += -O2 -qrecur -qnosave
42
42
else
43
43
FCOMMON_OPT += -O2 -frecursive -fno-fast-math
44
44
endif
45
- ifeq ($(C_COMPILER), GCC)
45
+
46
+ ifeq ($(F_COMPILER), GFORTRAN)
46
47
ifneq ($(GCCVERSIONGT4), 1)
47
48
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
48
49
FCOMMON_OPT += -mcpu=power8 -mtune=power8
49
50
else
50
51
FCOMMON_OPT += -mcpu=power9 -mtune=power9
51
52
endif
52
- else
53
- FCOMMON_OPT += -mcpu=power9 -mtune=power9
54
53
endif
55
54
else
56
55
FCOMMON_OPT += -O2 -Mrecursive
@@ -84,12 +83,16 @@ CCOMMON_OPT += -DUSE_OPENMP -fopenmp
84
83
else
85
84
CCOMMON_OPT += -DUSE_OPENMP -mp
86
85
endif
86
+ ifeq ($(F_COMPILER), IBM)
87
+ FCOMMON_OPT += -DUSE_OPENMP
88
+ else
87
89
ifneq ($(F_COMPILER), PGI)
88
90
FCOMMON_OPT += -DUSE_OPENMP -fopenmp
89
91
else
90
92
FCOMMON_OPT += -DUSE_OPENMP -mp
91
93
endif
92
94
endif
95
+ endif
93
96
94
97
# workaround for C->FORTRAN ABI violation in LAPACKE
95
98
ifeq ($(F_COMPILER), GFORTRAN)
You can’t perform that action at this time.
0 commit comments