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

Commit

Permalink
Fix NVCC deprecation warnings from tex_ref_input_iterator
Browse files Browse the repository at this point in the history
Add `-Wno-deprecated-declarations` flag to nvcc. We already
do this for GCC/Clang, this just adds the flag for nvcc itself.
  • Loading branch information
alliepiper committed Jul 20, 2021
1 parent b8b7461 commit fddb888
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/CubBuildCompilerTargets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,10 @@ function(cub_build_compiler_targets)
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Xcudafe=--promote_warnings>
# Don't complain about deprecated GPU targets.
$<$<AND:$<COMPILE_LANGUAGE:CUDA>,$<CUDA_COMPILER_ID:NVIDIA>>:-Wno-deprecated-gpu-targets>
# Suppress deprecation warnings in nvcc < 11.5.
# TexRefInputIterator uses deprecated CUDART APIs, see NVIDIA/cub#191.
# After 11.5, we will suppress these in-code via pragma, but for older nvcc
# we have to use the big hammer:
$<$<AND:$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>,$<VERSION_LESS:$<CUDA_COMPILER_VERSION>,11.5>>:-Wno-deprecated-declarations>
)
endfunction()

0 comments on commit fddb888

Please sign in to comment.