Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 2d18581

Browse files
committed
CMake v3.20+ no longer labels NVHPC as PGI. #543
* manual cherry pick
1 parent 1f27c83 commit 2d18581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMake/OpenAccHelper.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if(CORENRN_ENABLE_GPU)
2323
endif()
2424

2525
# various flags for PGI compiler with GPU build
26-
if(${CMAKE_C_COMPILER_ID} STREQUAL "PGI")
26+
if(${CMAKE_C_COMPILER_ID} STREQUAL "PGI" OR ${CMAKE_C_COMPILER_ID} STREQUAL "NVHPC")
2727

2828
# workaround for old PGI version
2929
set(PGI_ACC_FLAGS "-acc")

0 commit comments

Comments
 (0)