File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ endif
142
142
endif
143
143
144
144
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.
146
146
ifeq ($(ARCH), x86_64)
147
- ifneq ($(C_COMPILER), PGI )
147
+ ifeq ($(findstring pgcc,$(HOSTCC)), )
148
148
GETARCH_FLAGS += -march=native
149
149
endif
150
150
endif
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if (DEFINED TARGET)
66
66
endif ()
67
67
68
68
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
69
- if (X86_64 )
69
+ if (X86_64 AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "PGI" )
70
70
set (GETARCH_FLAGS "${GETARCH_FLAGS} -march=native" )
71
71
endif ()
72
72
You can’t perform that action at this time.
0 commit comments