Skip to content

Commit d2144b2

Browse files
authored
Add NVHPC
1 parent f8c8b22 commit d2144b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/system.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (DEFINED TARGET)
5555
endif ()
5656

5757
# 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")
58+
if (X86_64 AND NOT (${CMAKE_C_COMPILER_ID} STREQUAL "PGI" OR ${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC"))
5959
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
6060
endif ()
6161

0 commit comments

Comments
 (0)