Skip to content

Commit

Permalink
add manylinux2014 image (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaily authored Jun 2, 2023
1 parent 465b69e commit 76b871c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_all.sh
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
ROCM_VERSION=5.3
AMDGPU_VERSION=5.3
ROCM_VERSION=5.4.2
AMDGPU_VERSION=5.4.2
cp -r scripts rocm-terminal
cp -r scripts dev

Expand All @@ -14,6 14,10 @@ cd ../dev
sudo docker build . -f Dockerfile-centos-7 -t rocm/dev-centos-7:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
sudo docker tag rocm/dev-centos-7:$ROCM_VERSION rocm/dev-centos-7:latest

#manylinux2014_x86_64
sudo docker build . -f Dockerfile-manylinux2014_x86_64 -t rocm/dev-manylinux2014_x86_64:$ROCM_VERSION --build-arg=ROCM_VERSION=$ROCM_VERSION --build-arg=AMDGPU_VERSION=$AMDGPU_VERSION
sudo docker tag rocm/dev-manylinux2014_x86_64:$ROCM_VERSION rocm/dev-manylinux2014_x86_64:latest

#ubuntu20.04
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
Expand Down
14 changes: 14 additions & 0 deletions dev/Dockerfile-manylinux2014_x86_64
Original file line number Diff line number Diff line change
@@ -0,0 1,14 @@
FROM quay.io/pypa/manylinux2014_x86_64
LABEL [email protected]

#NOTE: manylinux image already has devtoolset installed

ARG ROCM_VERSION=5.4.2
ARG AMDGPU_VERSION=5.4.2

# Install the ROCm rpms
RUN yum clean all
RUN echo -e "[ROCm]\nname=ROCm\nbaseurl=https://repo.radeon.com/rocm/yum/$ROCM_VERSION/main\nenabled=1\ngpgcheck=0" >> /etc/yum.repos.d/rocm.repo
RUN echo -e "[amdgpu]\nname=amdgpu\nbaseurl=https://repo.radeon.com/amdgpu/$AMDGPU_VERSION/rhel/7.9/main/x86_64\nenabled=1\ngpgcheck=0" >> /etc/yum.repos.d/amdgpu.repo

RUN yum install -y rocm-dev

0 comments on commit 76b871c

Please sign in to comment.