ifeq ($(CORE), POWER9)
ifneq ($(C_COMPILER), PGI)
CCOMMON_OPT += -Ofast -mvsx -fno-fast-math
+ifeq ($(C_COMPILER), GCC)
ifneq ($(GCCVERSIONGT4), 1)
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
CCOMMON_OPT += -mcpu=power8 -mtune=power8
CCOMMON_OPT += -mcpu=power9 -mtune=power9
endif
else
+CCOMMON_OPT += -mcpu=power9 -mtune=power9
+endif
+else
CCOMMON_OPT += -fast -Mvect=simd -Mcache_align
endif
ifneq ($(F_COMPILER), PGI)
FCOMMON_OPT += -O2 -frecursive -fno-fast-math
+ifeq ($(C_COMPILER), GCC)
ifneq ($(GCCVERSIONGT4), 1)
$(warning your compiler is too old to fully support POWER9, getting a newer version of gcc is recommended)
FCOMMON_OPT += -mcpu=power8 -mtune=power8
FCOMMON_OPT += -mcpu=power9 -mtune=power9
endif
else
+FCOMMON_OPT += -mcpu=power9 -mtune=power9
+endif
+else
FCOMMON_OPT += -O2 -Mrecursive
endif
endif