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

Commit

Permalink
CMake updates.
Browse files Browse the repository at this point in the history
- Bump CUB for recent CMake fixes.
- Fix #1316 Add -Wno-deprecated-gpu-targets.
  • Loading branch information
alliepiper committed Oct 19, 2020
1 parent 240a147 commit 9120ca4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmake/ThrustBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ function(thrust_build_compiler_targets)
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Xcudafe=--display_error_number>
)

# Tell NVCC to be quiet about deprecated GPU targets:
target_compile_options(thrust.compiler_interface INTERFACE
# If using CUDA w/ NVCC...
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Wno-deprecated-gpu-targets>
)

# This is kept separate for Github issue #1174.
add_library(thrust.promote_cudafe_warnings INTERFACE)
target_compile_options(thrust.promote_cudafe_warnings INTERFACE
Expand Down
2 changes: 1 addition & 1 deletion dependencies/cub

0 comments on commit 9120ca4

Please sign in to comment.