diff --git a/cpp/cmake/Modules/ConfigureCUDA.cmake b/cpp/cmake/Modules/ConfigureCUDA.cmake index f79e4c37228..f75b5aef7af 100644 --- a/cpp/cmake/Modules/ConfigureCUDA.cmake +++ b/cpp/cmake/Modules/ConfigureCUDA.cmake @@ -1,5 +1,5 @@ # ============================================================================= -# Copyright (c) 2018-2022, NVIDIA CORPORATION. +# Copyright (c) 2018-2024, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at @@ -25,6 +25,11 @@ else() list(APPEND CUDF_CUDA_FLAGS -Werror=cross-execution-space-call) endif() list(APPEND CUDF_CUDA_FLAGS -Xcompiler=-Wall,-Werror,-Wno-error=deprecated-declarations) +# This warning needs to be suppressed because some parts of cudf instantiate templated CCCL +# functions in contexts where the resulting instantiations would have internal linkage (e.g. in +# anonymous namespaces). In such contexts, the visibility attribute on the template is ignored, and +# the compiler issues a warning. This is not a problem and will be fixed in future versions of CCCL. +list(APPEND CUDF_CUDA_FLAGS -diag-suppress=1407) if(DISABLE_DEPRECATION_WARNINGS) list(APPEND CUDF_CXX_FLAGS -Wno-deprecated-declarations) diff --git a/cpp/cmake/thirdparty/patches/cccl_override.json b/cpp/cmake/thirdparty/patches/cccl_override.json index 68fc8979c46..b33f17f3e4a 100644 --- a/cpp/cmake/thirdparty/patches/cccl_override.json +++ b/cpp/cmake/thirdparty/patches/cccl_override.json @@ -18,6 +18,11 @@ "issue" : "thrust::copy introduced a change in behavior that causes failures with cudaErrorInvalidValue.", "fixed_in" : "" }, + { + "file": "cccl/kernel_pointer_hiding.diff", + "issue": "Hide APIs that accept kernel pointers [https://github.com/NVIDIA/cccl/pull/1395]", + "fixed_in": "2.4" + }, { "file" : "${current_json_dir}/thrust_disable_64bit_dispatching.diff", "issue" : "Remove 64bit dispatching as not needed by libcudf and results in compiling twice as many kernels [https://github.com/rapidsai/cudf/pull/11437]",