ci: Add CUDA 11.8 to HIP 5.5 image

This commit is contained in:
Brad King 2023-09-18 18:34:05 -04:00
parent 26470eb987
commit cfec29196e
3 changed files with 29 additions and 3 deletions

View File

@ -2,7 +2,13 @@
ARG BASE_IMAGE=rocm/dev-ubuntu-22.04:5.5
FROM ${BASE_IMAGE} AS apt-cache
FROM ${BASE_IMAGE} AS cuda-keyring
ADD https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb /root/
RUN --mount=type=tmpfs,target=/var/log \
dpkg -i /root/cuda-keyring_1.1-1_all.deb \
&& rm /root/cuda-keyring_1.1-1_all.deb
FROM cuda-keyring AS apt-cache
# Populate APT cache w/ the fresh metadata and prefetch packages.
# Use an empty `docker-clean` file to "hide" the image-provided
# file to disallow removing packages after `apt-get` operations.
@ -12,9 +18,12 @@ RUN --mount=type=tmpfs,target=/var/log \
apt-get update \
&& apt-get --download-only -y install $(grep -h '^[^#]\+$' /root/*.lst)
FROM ${BASE_IMAGE}
FROM cuda-keyring
MAINTAINER Brad King <brad.king@kitware.com>
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
ENV NVIDIA_REQUIRE_CUDA=cuda>=11.8
ENV NVIDIA_VISIBLE_DEVICES=all
ENV PATH="/opt/rocm/bin:$PATH"
RUN --mount=type=bind,source=install_deps.sh,target=/root/install_deps.sh \

View File

@ -2,3 +2,20 @@
g++
curl
git
# NVIDIA CUDA Compiler
cuda-keyring
cuda-nvcc-11-8
cuda-profiler-api-11-8
# NVIDIA CUDA Toolkit
# These are not needed for HIP, but having them in
# the environment allows us to run CUDA tests too.
cuda-nvrtc-dev-11-8
cuda-nvtx-11-8
libcublas-dev-11-8
libcufft-dev-11-8
libcurand-dev-11-8
libcusolver-dev-11-8
libcusparse-dev-11-8
libnpp-dev-11-8

View File

@ -345,7 +345,7 @@
### HIP builds
.hip5.5:
image: "kitware/cmake:ci-hip5.5-x86_64-2023-06-01"
image: "kitware/cmake:ci-hip5.5-x86_64-2023-09-18"
variables:
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"