Browse Source

Add NVHPC

tags/v0.3.24
Martin Kroeker GitHub 2 years ago
parent
commit
d2144b2981
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmake/system.cmake

+ 1
- 1
cmake/system.cmake View File

@@ -55,7 +55,7 @@ if (DEFINED TARGET)
endif ()

# On x86_64 build getarch with march=native. This is required to detect AVX512 support in getarch.
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"))
set(GETARCH_FLAGS "${GETARCH_FLAGS} -march=native")
endif ()



Loading…
Cancel
Save