Skip to content

Commit 75b1f3b

Browse files
authored
Limit POWERPC DYNAMIC_CORE list to P8 and P9 for NVIDIA compilers
1 parent 005cce5 commit 75b1f3b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile.system

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ endif
663663
endif # ARCH zarch
664664

665665
ifeq ($(ARCH), power)
666+
ifneq ($(C_COMPILER), PGI)
666667
DYNAMIC_CORE = POWER6
667668
DYNAMIC_CORE += POWER8
668669
ifneq ($(C_COMPILER), GCC)
@@ -689,6 +690,10 @@ else
689690
$(info, OpenBLAS: Your gcc version is too old to build the POWER10 kernels.)
690691
endif
691692
endif
693+
else
694+
DYNAMIC_CORE = POWER8
695+
DYNAMIC_CORE += POWER9
696+
endif
692697
endif
693698

694699
# If DYNAMIC_CORE is not set, DYNAMIC_ARCH cannot do anything, so force it to empty
@@ -1039,12 +1044,18 @@ ifeq ($(ARCH), x86_64)
10391044
FCOMMON_OPT += -tp p7-64
10401045
else
10411046
ifeq ($(ARCH), power)
1047+
ifeq ($(CORE), POWER6)
1048+
$(warning NVIDIA HPC compilers do not support POWER6.)
1049+
endif
10421050
ifeq ($(CORE), POWER8)
10431051
FCOMMON_OPT += -tp pwr8
10441052
endif
10451053
ifeq ($(CORE), POWER9)
10461054
FCOMMON_OPT += -tp pwr9
10471055
endif
1056+
ifeq ($(CORE), POWER10)
1057+
$(warning NVIDIA HPC compilers do not support POWER10.)
1058+
endif
10481059
endif
10491060
endif
10501061
else

0 commit comments

Comments
 (0)