Skip to content

Commit f7cdb55

Browse files
committed
IPO is set to FALSE if NVHPC < 23.11
1 parent 4759bd8 commit f7cdb55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
217217
if (CMAKE_Fortran_COMPILER_ID STREQUAL "NVHPC")
218218
if (MFC_Unified)
219219
message(STATUS "IPO is not available with NVHPC using Unified Memory")
220+
elseif(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "23.11")
221+
message(STATUS "IPO is not supported in NVHPC Version < 23.11")
220222
else()
221223
message(STATUS "Performing IPO using -Mextract followed by -Minline")
222224
set(NVHPC_USE_TWO_PASS_IPO TRUE)

0 commit comments

Comments
 (0)