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

Commit

Permalink
CMake v3.20+ no longer labels NVHPC as PGI. #543
Browse files Browse the repository at this point in the history
* manual cherry pick
  • Loading branch information
alexsavulescu committed Jan 28, 2022
1 parent f42573d commit 53b066f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/OpenAccHelper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if(CORENRN_ENABLE_GPU)
endif()

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

# workaround for old PGI version
set(PGI_ACC_FLAGS "-acc")
Expand Down

0 comments on commit 53b066f

Please sign in to comment.