diff --git a/ci/docker/Dockerfile.build.ubuntu_gpu_cu102 b/ci/docker/Dockerfile.build.ubuntu_gpu_cu102 index f3b3f49fbd0b..6c2582de5419 100644 --- a/ci/docker/Dockerfile.build.ubuntu_gpu_cu102 +++ b/ci/docker/Dockerfile.build.ubuntu_gpu_cu102 @@ -69,6 +69,10 @@ ENV CUDNN_VERSION=8.0.4.30 COPY install/ubuntu_cudnn.sh /work/ RUN /work/ubuntu_cudnn.sh +# update the cuda compatibity package because cd host uses nvidia driver 460 +RUN apt-get update && apt-get install -y cuda-compat-11-2 +RUN ln -sfn /usr/local/cuda-11.2 /usr/local/cuda + # Always last ARG USER_ID=0 ARG GROUP_ID=0 diff --git a/ci/docker/Dockerfile.build.ubuntu_gpu_cu110 b/ci/docker/Dockerfile.build.ubuntu_gpu_cu110 index 336b76e2a3e8..db1f606076b5 100644 --- a/ci/docker/Dockerfile.build.ubuntu_gpu_cu110 +++ b/ci/docker/Dockerfile.build.ubuntu_gpu_cu110 @@ -32,6 +32,10 @@ COPY install/ubuntu_python.sh /work/ COPY install/requirements /work/ RUN /work/ubuntu_python.sh +# update the cuda compatibity package because cd host uses nvidia driver 460 +RUN apt-get update && apt-get install -y cuda-compat-11-2 +RUN ln -sfn /usr/local/cuda-11.2 /usr/local/cuda + # Always last ARG USER_ID=0 ARG GROUP_ID=0