Skip to content

Commit

Permalink
#286: Add parameter for nvcc_wraper to disable gpu warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Mar 6, 2023
1 parent cb9a95e commit 93198b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ if(checkpoint_serialization_error_checking_enabled)
message(STATUS "Building with serialization error checking enabled")
endif()

include(cmake/nvcc_no_deprecated_gpu_targets.cmake)

# Try to find ccache to speed up compilation
find_program(ccache_binary ccache)
if (ccache_binary)
Expand Down
5 changes: 5 additions & 0 deletions cmake/nvcc_no_deprecated_gpu_targets.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Add flag "-Wno-deprecated-gpu-targets" for NVCC builds

if($ENV{CXX} MATCHES "nvcc_wrapper")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-gpu-targets")
endif()

0 comments on commit 93198b6

Please sign in to comment.