mirror of
https://github.com/RadeonOpenCompute/ROCm-docker.git
synced 2023-04-23 17:53:00 +03:00
Merge pull request #99 from RadeonOpenCompute/rocm5.3-update
Rocm5.3 update
This commit is contained in:
14
build_all.sh
14
build_all.sh
@@ -1,5 +1,5 @@
|
|||||||
ROCM_VERSION=5.2.3
|
ROCM_VERSION=5.3
|
||||||
AMDGPU_VERSION=22.20.3
|
AMDGPU_VERSION=5.3
|
||||||
cp -r scripts rocm-terminal
|
cp -r scripts rocm-terminal
|
||||||
cp -r scripts dev
|
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 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
|
sudo docker tag rocm/dev-ubuntu-20.04:$ROCM_VERSION rocm/dev-ubuntu-20.04:latest
|
||||||
|
|
||||||
#ubuntu18.04
|
#ubuntu22.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 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-18.04:$ROCM_VERSION rocm/dev-ubuntu-18.04:latest
|
sudo docker tag rocm/dev-ubuntu-22.04:$ROCM_VERSION rocm/dev-ubuntu-22.04:latest
|
||||||
|
|
||||||
#ubuntu18.04 complete
|
#ubuntu22.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
|
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
|
#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
|
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
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM centos:7
|
FROM centos:7
|
||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.3
|
ARG AMDGPU_VERSION=5.3
|
||||||
# Base
|
# Base
|
||||||
RUN yum -y install git java-1.8.0-openjdk python; yum clean all
|
RUN yum -y install git java-1.8.0-openjdk python; yum clean all
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ FROM ubuntu:20.04
|
|||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.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 \
|
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 - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ FROM ubuntu:20.04
|
|||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.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 \
|
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 - \
|
&& curl -sL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
|
||||||
|
|||||||
@@ -1,19 +1,20 @@
|
|||||||
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
|
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
|
||||||
# installs the rocm-dev package.
|
# installs the rocm-dev package.
|
||||||
|
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:22.04
|
||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.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 \
|
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 - \
|
&& 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/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 bionic main" | tee /etc/apt/sources.list.d/amdgpu.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 \
|
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
||||||
sudo \
|
sudo \
|
||||||
libelf1 \
|
libelf1 \
|
||||||
kmod \
|
kmod \
|
||||||
@@ -24,3 +25,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
build-essential && \
|
build-essential && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN groupadd -g 109 render
|
||||||
@@ -1,17 +1,19 @@
|
|||||||
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
|
# This dockerfile is meant to serve as a rocm base image. It registers the debian rocm package repository, and
|
||||||
# installs the rocm-dev package.
|
# installs the rocm-dev package.
|
||||||
|
|
||||||
FROM ubuntu:18.04
|
FROM ubuntu:22.04
|
||||||
LABEL maintainer=peng.sun@amd.com
|
LABEL maintainer=peng.sun@amd.com
|
||||||
|
|
||||||
# Register the ROCM package repository, and install rocm-dev package
|
# Register the ROCM package repository, and install rocm-dev package
|
||||||
ARG ROCM_VERSION=5.1.3
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=22.10.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 \
|
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 - \
|
&& 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/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 bionic main" | tee /etc/apt/sources.list.d/amdgpu.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 \
|
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
sudo \
|
sudo \
|
||||||
libelf1 \
|
libelf1 \
|
||||||
@@ -24,3 +26,5 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|||||||
build-essential && \
|
build-essential && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN groupadd -g 109 render
|
||||||
12
push_all.sh
12
push_all.sh
@@ -1,19 +1,19 @@
|
|||||||
ROCM_VERSION=5.2.3
|
ROCM_VERSION=5.3
|
||||||
sudo docker push rocm/dev-ubuntu-18.04:$ROCM_VERSION
|
|
||||||
sudo docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION
|
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/dev-centos-7:$ROCM_VERSION
|
||||||
sudo docker push rocm/rocm-terminal:$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
|
#ubuntu20.04 complete
|
||||||
sudo docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION-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
|
#centos complete
|
||||||
#sudo docker push rocm/dev-centos-7:$ROCM_VERSION-complete
|
#sudo docker push rocm/dev-centos-7:$ROCM_VERSION-complete
|
||||||
|
|
||||||
sudo docker push rocm/dev-centos-7:latest
|
sudo docker push rocm/dev-centos-7:latest
|
||||||
sudo docker push rocm/dev-ubuntu-20.04: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
|
sudo docker push rocm/rocm-terminal:latest
|
||||||
|
|||||||
@@ -10,18 +10,18 @@
|
|||||||
# If it is desired to run the container manually through the docker command-line, the following is an example
|
# 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>'.
|
# '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>
|
MAINTAINER Peng Sun <Peng.Sun@amd.com>
|
||||||
|
|
||||||
# Initialize the image
|
# Initialize the image
|
||||||
# Modify to pre-install dev tools and ROCm packages
|
# Modify to pre-install dev tools and ROCm packages
|
||||||
ARG ROCM_VERSION=4.5.2
|
ARG ROCM_VERSION=5.3
|
||||||
ARG AMDGPU_VERSION=21.40.2
|
ARG AMDGPU_VERSION=5.3
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl gnupg && \
|
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 - && \
|
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] 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 bionic main > /etc/apt/sources.list.d/amdgpu.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 \
|
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
sudo \
|
sudo \
|
||||||
libelf1 \
|
libelf1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user