Skip to content

Commit

Permalink
Release 6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kiran-thumma committed Aug 12, 2024
1 parent 707f351 commit c0cbe1d
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 5 deletions.
11 changes: 9 additions & 2 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
ROCM_VERSION=6.1.2
AMDGPU_VERSION=6.1.2
ROCM_VERSION=6.2
AMDGPU_VERSION=6.2

cp -r scripts rocm-terminal
cp -r scripts dev
Expand Down Expand Up @@ -38,3 38,10 @@ sudo docker build . -f Dockerfile-ubuntu-22.04-complete -t rocm/dev-ubuntu-22.04

# almalinux8 complete (for manylinux2_28 builds)
sudo docker build . -f Dockerfile-almalinux-8-complete -t rocm/dev-almalinux-8:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION

## ubuntu24.04
sudo docker build . -f Dockerfile-ubuntu-24.04 -t rocm/dev-ubuntu-24.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-24.04:$ROCM_VERSION rocm/dev-ubuntu-24.04:latest

## ubuntu24.04 complete
sudo docker build . -f Dockerfile-ubuntu-24.04-complete -t rocm/dev-ubuntu-24.04:$ROCM_VERSION-complete --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
29 changes: 29 additions & 0 deletions dev/Dockerfile-ubuntu-24.04
Original file line number Diff line number Diff line change
@@ -0,0 1,29 @@
# 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:24.04
LABEL [email protected]

# Register the ROCM package repository, and install rocm-dev package
ARG ROCM_VERSION=6.2
ARG AMDGPU_VERSION=6.2

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/ noble main" | tee /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu noble 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 \
file \
python3-dev \
python3-pip \
rocm-dev \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN groupadd -g 109 render
30 changes: 30 additions & 0 deletions dev/Dockerfile-ubuntu-24.04-complete
Original file line number Diff line number Diff line change
@@ -0,0 1,30 @@
# 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:24.04
LABEL [email protected]

# Register the ROCM package repository, and install rocm-dev package
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/ noble main" | tee --append /etc/apt/sources.list.d/rocm.list \
&& printf "deb [arch=amd64] https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/ubuntu noble 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 \
file \
python3-dev \
python3-pip \
rocm-dev \
rocm-libs \
build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN groupadd -g 109 render
12 changes: 12 additions & 0 deletions dev/scripts/install_versioned_rocm.sh
Original file line number Diff line number Diff line change
@@ -0,0 1,12 @@
#!/bin/bash

set -ex

if [ -z $1 ]; then
echo "Need to provide ROCM_VERSION as first argument" && exit 1
fi

if [[ $1 =~ ^[0-9] \.[0-9] $ ]]; then
ROCM_VERSION=${1}".0"
fi
yum install -y rocm-dev${ROCM_VERSION} rocm-libs${ROCM_VERSION}
9 changes: 8 additions & 1 deletion push_all.sh
Original file line number Diff line number Diff line change
@@ -1,4 1,4 @@
ROCM_VERSION=6.1.2
ROCM_VERSION=6.2

# ubuntu 20.04 base
docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION
Expand All @@ -8,6 8,10 @@ docker push rocm/dev-ubuntu-20.04:latest
docker push rocm/dev-ubuntu-22.04:$ROCM_VERSION
docker push rocm/dev-ubuntu-22.04:latest

## ubuntu 24.04 base
docker push rocm/dev-ubuntu-24.04:$ROCM_VERSION
docker push rocm/dev-ubuntu-24.04:latest

# centos base
docker push rocm/dev-centos-7:$ROCM_VERSION
docker push rocm/dev-centos-7:latest
Expand All @@ -26,6 30,9 @@ docker push rocm/dev-ubuntu-20.04:$ROCM_VERSION-complete
# ubuntu22.04 complete
docker push rocm/dev-ubuntu-22.04:$ROCM_VERSION-complete

## ubuntu24.04 complete
#docker push rocm/dev-ubuntu-24.04:$ROCM_VERSION-complete

# centos complete
docker push rocm/dev-centos-7:$ROCM_VERSION-complete

Expand Down
4 changes: 2 additions & 2 deletions rocm-terminal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 15,8 @@ LABEL [email protected]

# Initialize the image
# Modify to pre-install dev tools and ROCm packages
ARG ROCM_VERSION=6.1.1
ARG AMDGPU_VERSION=6.1.1
ARG ROCM_VERSION=6.2
ARG AMDGPU_VERSION=6.2

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 - && \
Expand Down
12 changes: 12 additions & 0 deletions rocm-terminal/scripts/install_versioned_rocm.sh
Original file line number Diff line number Diff line change
@@ -0,0 1,12 @@
#!/bin/bash

set -ex

if [ -z $1 ]; then
echo "Need to provide ROCM_VERSION as first argument" && exit 1
fi

if [[ $1 =~ ^[0-9] \.[0-9] $ ]]; then
ROCM_VERSION=${1}".0"
fi
yum install -y rocm-dev${ROCM_VERSION} rocm-libs${ROCM_VERSION}

0 comments on commit c0cbe1d

Please sign in to comment.