Skip to content

Commit

Permalink
Failed to install ROCm-dev on Ubuntu jammy, rolling back
Browse files Browse the repository at this point in the history
  • Loading branch information
alephpiece committed Apr 5, 2024
1 parent 40fcaf0 commit 2b6e329
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG SPACK_VERSION="0.21.2"
ARG SPACK_IMAGE="spack/ubuntu-jammy"
ARG SPACK_IMAGE="spack/ubuntu-focal"
FROM ${SPACK_IMAGE}:${SPACK_VERSION} AS builder
ARG UBUNTU_CODE
ENV UBUNTU_CODE=${UBUNTU_CODE:-"jammy"}
ENV UBUNTU_CODE=${UBUNTU_CODE:-"focal"}

LABEL maintainer="An Wang <wangan.cs@gmail.com>"

Expand All @@ -13,13 +13,13 @@ WORKDIR /tmp
# Install system compilers and libraries
#-------------------------------------------------------------------------------
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
ARG ROCM_VERSION=5.4.6
ARG AMDGPU_VERSION=5.4.6

# install LLVM and CMake for spack, and
# install ROCm HIP, see https://github.com/ROCm/ROCm-docker/blob/master/dev/Dockerfile-ubuntu-20.04
COPY etc/apt/ /etc/apt/
RUN sed -i -e "s/jammy/$UBUNTU_CODE/g" /etc/apt/sources.list \
RUN sed -i -e "s/focal/$UBUNTU_CODE/g" /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl libnuma-dev gnupg \
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
Expand All @@ -35,7 +35,7 @@ RUN sed -i -e "s/jammy/$UBUNTU_CODE/g" /etc/apt/sources.list \
python3-pip \
rocm-dev \
build-essential \
llvm-15 clang-15 libomp-15-dev cmake openssh-server && \
llvm-13 clang-13 libomp-13-dev cmake openssh-server && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
#===============================================================================

# Build-time arguments
UBUNTU_CODE ?= "jammy"
SPACK_VERSION ?= "0.21.2"
SPACK_IMAGE = "spack/ubuntu-$(UBUNTU_CODE)"
UBUNTU_CODE ?= focal
SPACK_VERSION ?= 0.21.2
SPACK_IMAGE = spack/ubuntu-$(UBUNTU_CODE)
ROCM_VERSION ?= 5.4.6
AMDGPU_VERSION ?= 5.4.6

# Target
TARGET ?= "x86_64"
TARGET ?= x86_64

# Image name
DOCKER_IMAGE ?= antmoc/antmoc-ci
Expand Down
20 changes: 10 additions & 10 deletions etc/apt/sources.list
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.bfsu.edu.cn/ubuntu/ jammy main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.bfsu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# # deb-src https://mirrors.bfsu.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
# deb https://mirrors.bfsu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# # deb-src https://mirrors.bfsu.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

0 comments on commit 2b6e329

Please sign in to comment.