mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-12 09:08:58 -05:00
ci: Add an image for ROCm 5 HIP packages on Fedora 39
The ROCm 6 HIP packages on Fedora 40 do not seem to fully work for our test suite in CI jobs. Add a dedicated image to run our HIP tests on Fedora 39. Issue: #25932
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG BASE_IMAGE=fedora:39
|
||||
|
||||
FROM ${BASE_IMAGE} AS dnf-cache
|
||||
# Populate DNF cache w/ the fresh metadata and prefetch packages.
|
||||
RUN --mount=type=bind,source=deps_packages.lst,target=/root/deps_packages.lst \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
||||
dnf install \
|
||||
--setopt=install_weak_deps=False \
|
||||
--setopt=fastestmirror=True \
|
||||
--setopt=max_parallel_downloads=10 \
|
||||
--downloadonly \
|
||||
-y \
|
||||
$(grep -h '^[^#]\+$' /root/*.lst)
|
||||
|
||||
FROM ${BASE_IMAGE}
|
||||
LABEL maintainer="Brad King <brad.king@kitware.com>"
|
||||
|
||||
RUN --mount=type=bind,source=install_deps.sh,target=/root/install_deps.sh \
|
||||
--mount=type=bind,source=deps_packages.lst,target=/root/deps_packages.lst \
|
||||
--mount=type=cache,from=dnf-cache,source=/var/cache/dnf,target=/var/cache/dnf,sharing=private \
|
||||
--mount=type=cache,target=/var/cache/pip \
|
||||
--mount=type=tmpfs,target=/var/log \
|
||||
--mount=type=tmpfs,target=/tmp \
|
||||
sh /root/install_deps.sh
|
||||
@@ -0,0 +1,15 @@
|
||||
# Install development tools.
|
||||
clang
|
||||
clang-tools-extra
|
||||
compiler-rt
|
||||
gcc-c++
|
||||
git-core
|
||||
make
|
||||
|
||||
# Install HIP language toolchain.
|
||||
hsakmt-devel
|
||||
lld
|
||||
llvm
|
||||
rocm-comgr-devel
|
||||
rocm-hip-devel
|
||||
rocm-runtime-devel
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
dnf install \
|
||||
--setopt=install_weak_deps=False \
|
||||
--setopt=fastestmirror=True \
|
||||
--setopt=max_parallel_downloads=10 \
|
||||
-y \
|
||||
$(grep '^[^#]\+$' /root/deps_packages.lst)
|
||||
Reference in New Issue
Block a user