Skip to content

Commit 892e21f

Browse files
committed
Try CI
1 parent 4eccdad commit 892e21f

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

ci/docker/ubuntu-22.04-cpp.dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2323
RUN echo "debconf debconf/frontend select Noninteractive" | \
2424
debconf-set-selections
2525

26+
# Install CUDA 13 compatibility layer for systems with CUDA 12 drivers
27+
# This is required for runs-on GPU instances which have CUDA 12.9 drivers
28+
# See: https://docs.nvidia.com/deploy/cuda-compatibility/forward-compatibility.html
29+
ARG cuda
30+
RUN if [ -n "${cuda}" ] && [ "$(echo ${cuda} | cut -d. -f1)" = "13" ]; then \
31+
apt-get update -y -q && \
32+
apt-get install -y -q --no-install-recommends cuda-compat-13-0 && \
33+
apt-get clean && \
34+
rm -rf /var/lib/apt/lists*; \
35+
fi
36+
2637
# Installs LLVM toolchain, for Gandiva and testing other compilers
2738
#
2839
# Note that this is installed before the base packages to improve iteration

ci/docker/ubuntu-24.04-cpp.dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2323
RUN echo "debconf debconf/frontend select Noninteractive" | \
2424
debconf-set-selections
2525

26+
# Install CUDA 13 compatibility layer for systems with CUDA 12 drivers
27+
# This is required for runs-on GPU instances which have CUDA 12.9 drivers
28+
# See: https://docs.nvidia.com/deploy/cuda-compatibility/forward-compatibility.html
29+
ARG cuda
30+
RUN if [ -n "${cuda}" ] && [ "$(echo ${cuda} | cut -d. -f1)" = "13" ]; then \
31+
apt-get update -y -q && \
32+
apt-get install -y -q --no-install-recommends cuda-compat-13-0 && \
33+
apt-get clean && \
34+
rm -rf /var/lib/apt/lists*; \
35+
fi
36+
2637
# Installs LLVM toolchain, for Gandiva and testing other compilers
2738
#
2839
# Note that this is installed before the base packages to improve iteration

compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ services:
555555
base: nvidia/cuda:${CUDA}-devel-ubuntu${UBUNTU}
556556
clang_tools: ${CLANG_TOOLS}
557557
cmake: ${CMAKE}
558+
cuda: ${CUDA}
558559
llvm: ${LLVM}
559560
shm_size: *shm-size
560561
ulimits: *ulimits

0 commit comments

Comments
 (0)