Skip to content

Commit

Permalink
give up trying to suppress warning about deprecated command line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
ericniebler committed Feb 7, 2025
1 parent e4d040b commit 52ac3ac
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "NVHPC")
# Unset these if using nvc++
disable_compiler(LANG CUDA)

if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 24.5.0)
set(_nvhpc_seperate_memory_flags "-gpu=mem:separate")
else()
set(_nvhpc_seperate_memory_flags "-gpu=nomanaged")
endif()
set(_nvhpc_seperate_memory_flags "-gpu=nomanaged")
# if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 24.5.0)
# set(_nvhpc_seperate_memory_flags "-gpu=mem:separate")
# endif()
endif()

# Support target for examples and tests
Expand Down

0 comments on commit 52ac3ac

Please sign in to comment.