Add NVHPC(nvc)

This commit is contained in:
Martin Kroeker 2023-06-09 18:56:13 +02:00 committed by GitHub
parent 5a4fac1376
commit 2993a73262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -65,6 +65,14 @@ if (${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
endif () endif ()
endif () endif ()
if (${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC")
if (POWER)
set(CCOMMON_OPT "${CCOMMON_OPT} -tp pwr8")
else ()
set(CCOMMON_OPT "${CCOMMON_OPT} -tp px")
endif ()
endif ()
if (${CMAKE_C_COMPILER_ID} STREQUAL "PATHSCALE") if (${CMAKE_C_COMPILER_ID} STREQUAL "PATHSCALE")
if (BINARY64) if (BINARY64)
set(CCOMMON_OPT "${CCOMMON_OPT} -m64") set(CCOMMON_OPT "${CCOMMON_OPT} -m64")