Skip to content

Commit

Permalink
Update default to ROCm 6.1
Browse files Browse the repository at this point in the history
* Update default to Ubuntu 22.04 and ROCm 5.4
* Drop Ubuntu 18.04 stuffs
* Drop hip-libs and opencl-ml variants
  • Loading branch information
aimoff committed Jul 30, 2024
1 parent 2356df7 commit 0e69115
Show file tree
Hide file tree
Showing 37 changed files with 77 additions and 462 deletions.
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
OS_VARIANT=ubuntu-20.04
ROCM_VERSION=5.3
AMDGPU_VERSION=5.3
OS_VARIANT=ubuntu-22.04
ROCM_VERSION=6.1
AMDGPU_VERSION=6.1
TERM_FLAVOR=-complete-sdk
XTERM_FLAVOR=-complete
UID=
RENDER_GID=109
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ This fork is almost completely re-written as:
- Use `gpg --dearmor` instead of `apt-key add` for ubuntu-20.04 or later.
- Add X11 enabled terminal image.
- Omit CentOS-7 stuff due to its EOL.
- Ubuntu 18.04 stuffs are still exist, but no longer update.
- Add many image variants based on latest (5.6) [ROCm Programming Models][].
- Omit Ubuntu 18.04 stuffs.
- Add many image variants based on latest (6.1) [ROCm Programming Models][].

[ROCm Programming Models]: https://rocm.docs.amd.com/en/docs-5.6.0/deploy/linux/os-native/package_manager_integration.html#components-of-rocm-programming-models
[ROCm Programming Models]: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/native-install/package-manager-integration.html#components-of-rocm-programming-models

## How to build
### Build all images for all OSes
Expand Down
8 changes: 5 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
OS=${OS:-ubuntu}
OS_VERSION=${OS_VERSION:-22.04}
OS_VARIANT=${OS_VARIANT:-${OS}-${OS_VERSION}}
ROCM_VERSION=${ROCM_VERSION:-5.6}
AMDGPU_VERSION=${AMDGPU_VERSION:-5.6}
ROCM_VERSION=${ROCM_VERSION:-6.1}
AMDGPU_VERSION=${AMDGPU_VERSION:-6.1}
#TERM_FLAVOR=""
TERM_FLAVOR="-complete-sdk"
XTERM_FLAVOR="-complete"
RENDER_GID=$(getent group render | cut --delimiter ':' --fields 3)

cat >.env <<EOF
OS_VARIANT=${OS_VARIANT}
ROCM_VERSION=${ROCM_VERSION}
AMDGPU_VERSION=${AMDGPU_VERSION}
TERM_FLAVOR=${TERM_FLAVOR}
XTERM_FLAVOR=${XTERM_FLAVOR}
UID=${UID:-$(id -u)}
RENDER_GID=${RENDER_GID}
EOF
Expand All @@ -27,7 +29,7 @@ ${COMPOSE} build base || exit $?
# docker tag rocm/dev-${OS_VARIANT}:${ROCM_VERSION} rocm/dev-${OS_VARIANT}:latest

# build rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-${FLAVOR}
FLAVORS="openmp-sdk opencl opencl-sdk hip hip-libs hip-sdk ml ml-sdk complete complete-sdk"
FLAVORS="openmp-sdk opencl opencl-sdk hip hip-sdk ml ml-sdk complete complete-sdk"
for flavor in ${FLAVORS}; do
${COMPOSE} build ${flavor} || exit $?
# docker tag rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-${FLAVOR} rocm/dev-${OS_VARIANT}:latest-${FLAVOR}
Expand Down
31 changes: 0 additions & 31 deletions dev/Dockerfile-ubuntu-18.04

This file was deleted.

14 changes: 0 additions & 14 deletions dev/Dockerfile-ubuntu-18.04-complete

This file was deleted.

15 changes: 0 additions & 15 deletions dev/Dockerfile-ubuntu-18.04-complete-sdk

This file was deleted.

14 changes: 0 additions & 14 deletions dev/Dockerfile-ubuntu-18.04-hip

This file was deleted.

14 changes: 0 additions & 14 deletions dev/Dockerfile-ubuntu-18.04-hip-libs

This file was deleted.

17 changes: 0 additions & 17 deletions dev/Dockerfile-ubuntu-18.04-hip-sdk

This file was deleted.

14 changes: 0 additions & 14 deletions dev/Dockerfile-ubuntu-18.04-ml

This file was deleted.

17 changes: 0 additions & 17 deletions dev/Dockerfile-ubuntu-18.04-ml-sdk

This file was deleted.

15 changes: 0 additions & 15 deletions dev/Dockerfile-ubuntu-18.04-opencl

This file was deleted.

13 changes: 0 additions & 13 deletions dev/Dockerfile-ubuntu-18.04-opencl-ml

This file was deleted.

18 changes: 0 additions & 18 deletions dev/Dockerfile-ubuntu-18.04-opencl-sdk

This file was deleted.

13 changes: 0 additions & 13 deletions dev/Dockerfile-ubuntu-18.04-openmp-sdk

This file was deleted.

1 change: 0 additions & 1 deletion dev/Dockerfile-ubuntu-20.04
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ RUN apt-get update \
kmod \
file \
python3 \
libnuma1 \
rocm-language-runtime \
rocminfo \
&& apt-get clean \
Expand Down
2 changes: 2 additions & 0 deletions dev/Dockerfile-ubuntu-20.04-complete
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
rocm-opencl-runtime \
clinfo \
migraphx \
mivisionx \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
4 changes: 3 additions & 1 deletion dev/Dockerfile-ubuntu-20.04-complete-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-ml-sdk

Expand All @@ -11,5 +11,7 @@ RUN apt-get update \
rocm-opencl-sdk \
clinfo \
rocm-openmp-sdk \
migraphx-dev \
mivisionx-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions dev/Dockerfile-ubuntu-20.04-hip
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:$ROCM_VERSION

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
rocm-hip-runtime \
rocm-hip-libraries \
&& apt-mark auto rocminfo rocm-language-runtime \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
14 changes: 0 additions & 14 deletions dev/Dockerfile-ubuntu-20.04-hip-libs

This file was deleted.

7 changes: 3 additions & 4 deletions dev/Dockerfile-ubuntu-20.04-hip-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-hip-libs
FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-hip

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
rocm-hip-sdk \
python3-dev \
libnuma-dev \
build-essential \
&& apt-mark auto rocm-hip-libraries libnuma1 \
&& apt-mark auto rocm-hip-libraries \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
4 changes: 2 additions & 2 deletions dev/Dockerfile-ubuntu-20.04-ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-hip-libs
FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-hip

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down
5 changes: 2 additions & 3 deletions dev/Dockerfile-ubuntu-20.04-ml-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:${ROCM_VERSION}-ml

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
rocm-ml-sdk \
python3-dev \
libnuma-dev \
build-essential \
&& apt-mark auto rocm-ml-libraries libnuma1 \
&& apt-mark auto rocm-ml-libraries \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
2 changes: 1 addition & 1 deletion dev/Dockerfile-ubuntu-20.04-opencl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Add rocm-lib package to rocm/dev-ubuntu-20.04 image

ARG OS_VARIANT=ubuntu-20.04
ARG ROCM_VERSION=5.3
ARG ROCM_VERSION=6.1

FROM rocm/dev-${OS_VARIANT}:$ROCM_VERSION

Expand Down
Loading

0 comments on commit 0e69115

Please sign in to comment.