diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index d700f58..ef976a4 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -55,7 +55,7 @@ jobs: SCCACHE_DIST_AUTH_TOKEN_VAR=RAPIDS_AUX_SECRET_1 build_command: | sccache --zero-stats; - build-all -j0 --verbose 2>&1 | tee telemetry-artifacts/build.log; + build-all -j0 -DDISABLE_DEPRECATION_WARNINGS=ON --verbose 2>&1 | tee telemetry-artifacts/build.log; sccache --show-adv-stats | tee telemetry-artifacts/sccache-stats.txt; telemetry-summarize: # This job must use a self-hosted runner to record telemetry traces. diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index cb28690..1e82405 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -54,6 +54,7 @@ option(CUMLPRIMS_MG_RAFT_CLONE_ON_PIN "Explicitly clone RAFT branch when pinned option(DETECT_CONDA_ENV "Enable detection of conda environment for dependencies" ON) option(DISABLE_OPENMP "Disable OpenMP" OFF) option(NVTX "Enable nvtx markers" OFF) +option(DISABLE_DEPRECATION_WARNINGS "Disable warnings generated from deprecated declarations." OFF) if(BUILD_TESTS) message(STATUS "CUMLPRIMS_MG: Setting BUILD_TESTS to OFF because they don't compile") @@ -279,4 +280,4 @@ rapids_export( # include(cmake/doxygen.cmake) # add_doxygen_target(IN_DOXYFILE src_prims/Doxyfile.in # OUT_DOXYFILE ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile -# CWD ${CMAKE_CURRENT_BINARY_DIR}) \ No newline at end of file +# CWD ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/cpp/cmake/modules/ConfigureCUDA.cmake b/cpp/cmake/modules/ConfigureCUDA.cmake index 493d43b..e51226c 100644 --- a/cpp/cmake/modules/ConfigureCUDA.cmake +++ b/cpp/cmake/modules/ConfigureCUDA.cmake @@ -24,9 +24,9 @@ list(APPEND CUMLPRIMS_MG_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-conste # list(APPEND CUMLPRIMS_MG_CUDA_FLAGS -Werror=cross-execution-space-call) # list(APPEND CUMLPRIMS_MG_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations) -if(DISABLE_DEPRECATION_WARNING) - list(APPEND CUMLPRIMS_MG_CXX_FLAGS -Wno-deprecated-declarations) - list(APPEND CUMLPRIMS_MG_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations) +if(DISABLE_DEPRECATION_WARNINGS) + list(APPEND CUMLPRIMS_MG_CXX_FLAGS -Wno-deprecated-declarations -DRAFT_HIDE_DEPRECATION_WARNINGS) + list(APPEND CUMLPRIMS_MG_CUDA_FLAGS -Xcompiler=-Wno-deprecated-declarations -DRAFT_HIDE_DEPRECATION_WARNINGS) endif() # make sure we produce smallest binary size