fix(ci): also install rocm in one transaction (#2226)
speeds up builds a tiny bit
This commit is contained in:
parent
844b4865af
commit
c2ed7b78ad
1 changed files with 4 additions and 7 deletions
|
|
@ -62,17 +62,14 @@ FEDORA_PACKAGES=(
|
|||
ydotool
|
||||
)
|
||||
|
||||
echo "Installing ${#FEDORA_PACKAGES[@]} DX packages from Fedora repos..."
|
||||
dnf5 -y install "${FEDORA_PACKAGES[@]}"
|
||||
|
||||
# rocm doesn't work well on nvidia
|
||||
if [[ ! "${IMAGE_NAME}" =~ nvidia ]]; then
|
||||
dnf install -y \
|
||||
rocm-hip \
|
||||
rocm-opencl \
|
||||
rocm-smi
|
||||
FEDORA_PACKAGES+=("rocm-hip" "rocm-opencl" "rocm-smi")
|
||||
fi
|
||||
|
||||
echo "Installing ${#FEDORA_PACKAGES[@]} DX packages from Fedora repos..."
|
||||
dnf5 -y install "${FEDORA_PACKAGES[@]}"
|
||||
|
||||
# Docker packages from their repo
|
||||
dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
sed -i "s/enabled=.*/enabled=0/g" /etc/yum.repos.d/docker-ce.repo
|
||||
|
|
|
|||
Loading…
Reference in a new issue