We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8c8b22 commit d2144b2Copy full SHA for d2144b2
cmake/system.cmake
@@ -55,7 +55,7 @@ if (DEFINED TARGET)
55
endif ()
56
57
# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
58
-if (X86_64 AND NOT ${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
+if (X86_64 AND NOT (${CMAKE_C_COMPILER_ID} STREQUAL "PGI" OR ${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC"))
59
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
60
61
0 commit comments