-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
707f351
commit c0cbe1d
Showing
7 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 - && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |