This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 152eb879b4 GH-45514: [CI][C++][Docs] Set CUDAToolkit_ROOT explicitly 
in debian-docs (#45520)
152eb879b4 is described below

commit 152eb879b4fd4476dadd3cd497bb8d78d3013cef
Author: Sutou Kouhei <[email protected]>
AuthorDate: Fri Feb 14 09:19:54 2025 +0900

    GH-45514: [CI][C++][Docs] Set CUDAToolkit_ROOT explicitly in debian-docs 
(#45520)
    
    ### Rationale for this change
    
    CMake's `FindCUDAToolkit.cmake` uses `/usr/lib/cuda/` as the default prefix 
but Debian's `nvidia-cuda-dev` uses `/usr` as prefix.
    
    ### What changes are included in this PR?
    
    Set `CUDAToolkit_ROOT=/usr` explicitly.
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #45514
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 ci/docker/linux-apt-docs.dockerfile | 1 +
 ci/scripts/cpp_build.sh             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/ci/docker/linux-apt-docs.dockerfile 
b/ci/docker/linux-apt-docs.dockerfile
index 0804f3543c..00293685f6 100644
--- a/ci/docker/linux-apt-docs.dockerfile
+++ b/ci/docker/linux-apt-docs.dockerfile
@@ -133,4 +133,5 @@ ENV ARROW_ACERO=ON \
     ARROW_S3=ON \
     ARROW_USE_GLOG=OFF \
     CMAKE_UNITY_BUILD=ON \
+    CUDAToolkit_ROOT=/usr \
     RETICULATE_PYTHON_ENV=${ARROW_PYTHON_VENV}
diff --git a/ci/scripts/cpp_build.sh b/ci/scripts/cpp_build.sh
index c1e7adf6a0..16b0fbbd07 100755
--- a/ci/scripts/cpp_build.sh
+++ b/ci/scripts/cpp_build.sh
@@ -220,6 +220,7 @@ else
     -DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR:-lib} \
     -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:-${ARROW_HOME}} \
     -DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD:-OFF} \
+    -DCUDAToolkit_ROOT=${CUDAToolkit_ROOT:-} \
     -Dgflags_SOURCE=${gflags_SOURCE:-} \
     -Dgoogle_cloud_cpp_storage_SOURCE=${google_cloud_cpp_storage_SOURCE:-} \
     -DgRPC_SOURCE=${gRPC_SOURCE:-} \

Reply via email to