@@ -21,23 +21,56 @@ endif
21
21
22
22
ifeq ($(CORE), POWER9)
23
23
ifeq ($(USE_OPENMP), 1)
24
- COMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
24
+ ifneq ($(C_COMPILER), PGI)
25
+ CCOMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
26
+ else
27
+ CCOMMON_OPT += -fast -Mvect=simd -Mcache_align -DUSE_OPENMP -mp
28
+ endif
29
+ ifneq ($(F_COMPILER), PGI)
25
30
FCOMMON_OPT += -O2 -frecursive -mcpu=power9 -mtune=power9 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
26
31
else
27
- COMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -fno-fast-math
32
+ FCOMMON_OPT += -O2 -Mrecursive -DUSE_OPENMP -mp
33
+ endif
34
+ else
35
+ ifneq ($(C_COMPILER), PGI)
36
+ CCOMMON_OPT += -Ofast -mcpu=power9 -mtune=power9 -mvsx -malign-power -fno-fast-math
37
+ else
38
+ CCOMMON_OPT += -fast -Mvect=simd -Mcache_align
39
+ endif
40
+ ifneq ($(F_COMPILER), PGI)
28
41
FCOMMON_OPT += -O2 -frecursive -mcpu=power9 -mtune=power9 -malign-power -fno-fast-math
42
+ else
43
+ FCOMMON_OPT += -O2 -Mrecursive
44
+ endif
29
45
endif
30
46
endif
31
47
32
48
ifeq ($(CORE), POWER8)
33
49
ifeq ($(USE_OPENMP), 1)
34
- COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
50
+ ifneq ($(C_COMPILER), PGI)
51
+ CCOMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
52
+ else
53
+ CCOMMON_OPT += -fast -Mvect=simd -Mcache_align -DUSE_OPENMP -mp
54
+ endif
55
+ ifneq ($(F_COMPILER), PGI)
35
56
FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
36
57
else
37
- COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math
38
- FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
58
+ FCOMMON_OPT += -O2 -Mrecursive -DUSE_OPENMP -mp
59
+ endif
60
+ else
61
+ ifneq ($(C_COMPILER), PGI)
62
+ CCOMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -fno-fast-math
63
+ else
64
+ CCOMMON_OPT += -fast -Mvect=simd -Mcache_align
65
+ endif
66
+ ifneq ($(F_COMPILER), PGI)
39
67
ifeq ($(OSNAME), AIX)
40
68
FCOMMON_OPT += -O1 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
69
+ else
70
+ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
71
+ endif
72
+ else
73
+ FCOMMON_OPT += -O2 -Mrecursive
41
74
endif
42
75
endif
43
76
endif
0 commit comments