Do not use -march=native with the PGI compiler

This commit is contained in:
Martin Kroeker 2019-08-16 08:58:10 +02:00 committed by GitHub
parent 8506386d82
commit e3d846ab57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ if (DEFINED TARGET)
endif () endif ()
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch. # On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
if (X86_64) if (X86_64 AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native") set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
endif () endif ()