Skip to content

Commit a95a5e5

Browse files
authored
Fix PGI compiler detection for getarch
1 parent e3d846a commit a95a5e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile.system

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ endif
142142
endif
143143

144144

145-
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
145+
# On x86_64 build getarch with march=native unless the compiler is PGI. This is required to detect AVX512 support in getarch.
146146
ifeq ($(ARCH), x86_64)
147-
ifneq ($(C_COMPILER), PGI)
147+
ifeq ($(findstring pgcc,$(HOSTCC)),)
148148
GETARCH_FLAGS += -march=native
149149
endif
150150
endif

0 commit comments

Comments
 (0)