Skip to content

Commit e3d846a

Browse files
authored
Do not use -march=native with the PGI compiler
1 parent 8506386 commit e3d846a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/system.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (DEFINED TARGET)
6666
endif ()
6767

6868
# 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")
7070
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
7171
endif ()
7272

0 commit comments

Comments
 (0)