Merge pull request #99 from RadeonOpenCompute/rocm5.3-update

Rocm5.3 update
This commit is contained in:
Peng
2022-11-10 07:23:23 -08:00
committed by GitHub
8 changed files with 43 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
ROCM_VERSION=5.2.3
AMDGPU_VERSION=22.20.3
ROCM_VERSION=5.3
AMDGPU_VERSION=5.3
cp -r scripts rocm-terminal
cp -r scripts dev
@@ -18,12 +18,12 @@ sudo docker tag rocm/dev-centos-7:$ROCM_VERSION rocm/dev-centos-7:latest
sudo docker build . -f Dockerfile-ubuntu-20.04 -t rocm/dev-ubuntu-20.04:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
sudo docker tag rocm/dev-ubuntu-20.04:$ROCM_VERSION rocm/dev-ubuntu-20.04:latest
#ubuntu18.04
sudo docker build . -f Dockerfile-ubuntu-18.04 -t rocm/dev-ubuntu-18.04:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
sudo docker tag rocm/dev-ubuntu-18.04:$ROCM_VERSION rocm/dev-ubuntu-18.04:latest
#ubuntu22.04
sudo docker build . -f Dockerfile-ubuntu-22.04 -t rocm/dev-ubuntu-22.04:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION --build-arg=APT_PREF="Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600"
sudo docker tag rocm/dev-ubuntu-22.04:$ROCM_VERSION rocm/dev-ubuntu-22.04:latest
#ubuntu18.04 complete
sudo docker build . -f Dockerfile-ubuntu-18.04-complete -t rocm/dev-ubuntu-18.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
#ubuntu22.04 complete
sudo docker build . -f Dockerfile-ubuntu-22.04-complete -t rocm/dev-ubuntu-22.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION --build-arg=APT_PREF="Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600"
#ubuntu20.04 complete
sudo docker build . -f Dockerfile-ubuntu-20.04-complete -t rocm/dev-ubuntu-20.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION

View File

@@ -1,8 +1,8 @@
FROM centos:7
LABEL maintainer=peng.sun@amd.com
ARG ROCM_VERSION=5.1.3
ARG AMDGPU_VERSION=22.10.3
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
# Base
RUN yum -y install git java-1.8.0-openjdk python; yum clean all

View File

@@ -5,8 +5,8 @@ FROM ubuntu:20.04
LABEL maintainer=peng.sun@amd.com
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=5.1.3
ARG AMDGPU_VERSION=22.10.3
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
RUN 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 - \

View File

@@ -5,8 +5,8 @@ FROM ubuntu:20.04
LABEL maintainer=peng.sun@amd.com
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=5.1.3
ARG AMDGPU_VERSION=22.10.3
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
RUN 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 - \

View File

@@ -1,19 +1,20 @@
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
# installs the rocm-dev package.
FROM ubuntu:18.04
FROM ubuntu:22.04
LABEL maintainer=peng.sun@amd.com
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=5.1.3
ARG AMDGPU_VERSION=22.10.3
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
ARG APT_PREF
RUN echo "$APT_PREF" > /etc/apt/preferences.d/rocm-pin-600
RUN 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 - \
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ ubuntu main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu bionic main" | tee /etc/apt/sources.list.d/amdgpu.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu jammy main" | tee /etc/apt/sources.list.d/amdgpu.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
sudo \
libelf1 \
kmod \
@@ -24,3 +25,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g 109 render

View File

@@ -1,17 +1,19 @@
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
# installs the rocm-dev package.
FROM ubuntu:18.04
FROM ubuntu:22.04
LABEL maintainer=peng.sun@amd.com
# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=5.1.3
ARG AMDGPU_VERSION=22.10.3
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
ARG APT_PREF
RUN echo "$APT_PREF" > /etc/apt/preferences.d/rocm-pin-600
RUN 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 - \
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ ubuntu main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu bionic main" | tee /etc/apt/sources.list.d/amdgpu.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/rocm/apt/$ROCM_VERSION/ jammy main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu jammy main" | tee /etc/apt/sources.list.d/amdgpu.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
sudo \
libelf1 \
@@ -24,3 +26,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -g 109 render

View File

@@ -1,19 +1,19 @@
ROCM_VERSION=5.2.3
sudo docker push rocm/dev-ubuntu-18.04:$ROCM_VERSION
ROCM_VERSION=5.3
sudo docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION
sudo docker push rocm/dev-ubuntu-22.04:$ROCM_VERSION
sudo docker push rocm/dev-centos-7:$ROCM_VERSION
sudo docker push rocm/rocm-terminal:$ROCM_VERSION
#ubuntu18.04 complete
sudo docker push rocm/dev-ubuntu-18.04:$ROCM_VERSION-complete
#ubuntu20.04 complete
sudo docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION-complete
#ubuntu22.04 complete
sudo docker push rocm/dev-ubuntu-22.04:$ROCM_VERSION-complete
#centos complete
#sudo docker push rocm/dev-centos-7:$ROCM_VERSION-complete
sudo docker push rocm/dev-centos-7:latest
sudo docker push rocm/dev-ubuntu-20.04:latest
sudo docker push rocm/dev-ubuntu-18.04:latest
sudo docker push rocm/dev-ubuntu-22.04:latest
sudo docker push rocm/rocm-terminal:latest

View File

@@ -10,18 +10,18 @@
# If it is desired to run the container manually through the docker command-line, the following is an example
# 'docker run -it --rm -v [host/directory]:[container/directory]:ro <user-name>/<project-name>'.
FROM ubuntu:18.04
FROM ubuntu:20.04
MAINTAINER Peng Sun <Peng.Sun@amd.com>
# Initialize the image
# Modify to pre-install dev tools and ROCm packages
ARG ROCM_VERSION=4.5.2
ARG AMDGPU_VERSION=21.40.2
ARG ROCM_VERSION=5.3
ARG AMDGPU_VERSION=5.3
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl gnupg && \
curl -sL http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - && \
sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/$ROCM_VERSION/ ubuntu main > /etc/apt/sources.list.d/rocm.list' && \
sh -c 'echo deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu bionic main > /etc/apt/sources.list.d/amdgpu.list' && \
sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/$ROCM_VERSION/ focal main > /etc/apt/sources.list.d/rocm.list' && \
sh -c 'echo deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu focal main > /etc/apt/sources.list.d/amdgpu.list' && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
sudo \
libelf1 \