File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ option(PopSift_USE_GRID_FILTER "Switch off grid filtering to massively reduce co
1616option (PopSift_USE_NORMF "The __normf function computes Euclidean distance on large arrays. Fast but stability is uncertain." OFF )
1717option (PopSift_NVCC_WARNINGS "Switch on several additional warning for CUDA nvcc" OFF )
1818option (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 )
1920option (BUILD_SHARED_LIBS "Build shared libraries" ON )
2021
2122if (PopSift_USE_POSITION_INDEPENDENT_CODE AND NOT MSVC )
@@ -105,6 +106,10 @@ endif()
105106
106107set (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+
108113if (UNIX AND NOT APPLE )
109114 list (APPEND CUDA_NVCC_FLAGS "-Xcompiler;-rdynamic" )
110115 # set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-Xptxas;-v")
You can’t perform that action at this time.
0 commit comments