Skip to content

Commit 9dd7ae4

Browse files
authored
Merge pull request #124 from alicevision/cuda/no_deprecated_warnings
[cmake] suppress deprecated cuda sm warnings
2 parents 5bbd332 + c6bda37 commit 9dd7ae4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ option(PopSift_USE_GRID_FILTER "Switch off grid filtering to massively reduce co
1616
option(PopSift_USE_NORMF "The __normf function computes Euclidean distance on large arrays. Fast but stability is uncertain." OFF)
1717
option(PopSift_NVCC_WARNINGS "Switch on several additional warning for CUDA nvcc" OFF)
1818
option(PopSift_USE_TEST_CMD "Add testing step for functional verification" OFF)
19+
option(PopSift_NO_DEPRECATED_CUDA_SM_WARNINGS "Suppress warnings about soon to be deprecated cuda SM" ON)
1920
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
2021

2122
if(PopSift_USE_POSITION_INDEPENDENT_CODE AND NOT MSVC)
@@ -105,6 +106,10 @@ endif()
105106

106107
set(CUDA_SEPARABLE_COMPILATION ON)
107108

109+
if(PopSift_NO_DEPRECATED_CUDA_SM_WARNINGS)
110+
list(APPEND CUDA_NVCC_FLAGS "-Wno-deprecated-gpu-targets")
111+
endif()
112+
108113
if(UNIX AND NOT APPLE)
109114
list(APPEND CUDA_NVCC_FLAGS "-Xcompiler;-rdynamic")
110115
# set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-Xptxas;-v")

0 commit comments

Comments
 (0)