File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -17,24 +17,32 @@ endif
17
17
ifeq ($(CORE), POWER9)
18
18
ifneq ($(C_COMPILER), PGI)
19
19
CCOMMON_OPT += -Ofast -mvsx -fno-fast-math
20
+ ifeq ($(C_COMPILER), GCC)
20
21
ifneq ($(GCCVERSIONGT4), 1)
21
22
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
22
23
CCOMMON_OPT += -mcpu=power8 -mtune=power8
23
24
else
24
25
CCOMMON_OPT += -mcpu=power9 -mtune=power9
25
26
endif
26
27
else
28
+ CCOMMON_OPT += -mcpu=power9 -mtune=power9
29
+ endif
30
+ else
27
31
CCOMMON_OPT += -fast -Mvect=simd -Mcache_align
28
32
endif
29
33
ifneq ($(F_COMPILER), PGI)
30
34
FCOMMON_OPT += -O2 -frecursive -fno-fast-math
35
+ ifeq ($(C_COMPILER), GCC)
31
36
ifneq ($(GCCVERSIONGT4), 1)
32
37
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
33
38
FCOMMON_OPT += -mcpu=power8 -mtune=power8
34
39
else
35
40
FCOMMON_OPT += -mcpu=power9 -mtune=power9
36
41
endif
37
42
else
43
+ FCOMMON_OPT += -mcpu=power9 -mtune=power9
44
+ endif
45
+ else
38
46
FCOMMON_OPT += -O2 -Mrecursive
39
47
endif
40
48
endif
You can’t perform that action at this time.
0 commit comments