Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/docker/DOCKERFILE.ais_ci_rocky
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ARG ROCKY_MAJOR_VERSION=9
ARG ROCKY_VERSION=${ROCKY_MAJOR_VERSION}.6
FROM rockylinux/rockylinux:${ROCKY_VERSION}-minimal
LABEL org.opencontainers.image.source=https://github.com/ROCm/rocs-internal
LABEL org.opencontainers.image.source=https://github.com/ROCm/hipFile
# Brings ROCKY_VERSION in-scope
ARG ROCKY_MAJOR_VERSION
ARG ROCKY_VERSION
Expand Down
2 changes: 1 addition & 1 deletion util/docker/DOCKERFILE.ais_ci_suse
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ARG SUSE_MAJOR_VERSION=15
ARG SUSE_VERSION=${SUSE_MAJOR_VERSION}.6
FROM opensuse/leap:${SUSE_VERSION}
LABEL org.opencontainers.image.source=https://github.com/ROCm/rocs-internal
LABEL org.opencontainers.image.source=https://github.com/ROCm/hipFile
ARG SUSE_MAJOR_VERSION
ARG SUSE_VERSION
ARG ROCm_VERSION=6.4.2
Expand Down
43 changes: 38 additions & 5 deletions util/docker/DOCKERFILE.ais_ci_ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,63 @@
#
# SPDX-License-Identifier: MIT

FROM rocm/dev-ubuntu-24.04:6.4.1
LABEL org.opencontainers.image.source=https://github.com/ROCm/rocs-internal
ARG UBUNTU_CODENAME=noble
FROM ubuntu:${UBUNTU_CODENAME}
LABEL org.opencontainers.image.source=https://github.com/ROCm/hipFile
ARG UBUNTU_CODENAME
ARG UBUNTU_MAJOR_VERSION=24
ARG UBUNTU_MINOR_VERSION=04
ARG ROCm_VERSION=6.4.2

# CI Dependencies
RUN apt update && \
apt install -y \
curl \
gpg

# Retrieve ROCm GPG key
RUN curl https://repo.radeon.com/rocm/rocm.gpg.key | \
gpg --dearmor >> /etc/apt/keyrings/rocm.gpg

# Manually setup ROCm Package Repos
RUN cat <<EOF > /etc/apt/sources.list.d/rocm.list
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/${ROCm_VERSION} ${UBUNTU_CODENAME} main
deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/${ROCm_VERSION}/ubuntu ${UBUNTU_CODENAME} main
EOF

RUN cat <<EOF > /etc/apt/preferences.d/rocm-pin-600
Package: *
Pin: release o=repo.radeon.com
Pin-Priority: 600
EOF

# Development Dependencies
RUN apt update && \
apt install -y \
clang \
cmake \
curl \
doxygen \
gdb \
git \
hip-dev \
libboost-program-options-dev \
libmount-dev \
librocthrust-dev \
libssl-dev \
llvm-dev \
rocm-llvm-dev

# Configure system linker for ROCm
RUN cat <<EOF > /etc/ld.so.conf.d/rocm.conf
/opt/rocm/lib
/opt/rocm/lib64
EOF
RUN ldconfig

# Install a minimal CUDA SDK
# HIP depends on the ROCm libraries being installed.
# This means we are unable to have a separate CUDA+HIP image
# without ROCm.
RUN curl https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb \
RUN curl https://developer.download.nvidia.com/compute/cuda/repos/ubuntu${UBUNTU_MAJOR_VERSION}${UBUNTU_MINOR_VERSION}/x86_64/cuda-keyring_1.1-1_all.deb \
-o cuda-repo-install.deb
RUN apt install ./cuda-repo-install.deb
# https://gitlab.com/nvidia/container-images/cuda/blob/master/dist/12.6.1/ubuntu2404/devel/Dockerfile
Expand Down
Loading