Skip to content

Commit eee5cdf

Browse files
authored
Merge pull request #205 from charyang-ai/main
Add docker file for ROCm6.3.3 and ROCm6.4.0
2 parents 80378df + 1929026 commit eee5cdf

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

Dockerfile.rocm6.3.3

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG UBUNTU_VERSION=22.04
2+
ARG TORCH_VERSION=2.2.1
3+
ARG ROCM_VERSION=6.3.3
4+
FROM rocm/pytorch:rocm${ROCM_VERSION}_ubuntu22.04_py3.10_pytorch_release_${TORCH_VERSION}
5+
6+
ARG LLVM_VERSION=17
7+
ARG CMAKE_BUILD_TYPE=Release
8+
9+
SHELL ["/bin/bash", "-c"]
10+
11+
# Env variables
12+
ENV DEBIAN_FRONTEND noninteractive
13+
14+
# Prepare directories
15+
WORKDIR /code
16+
17+
# Copy everything
18+
COPY . ./
19+
20+
# Install build dependencies
21+
RUN apt-get update && \
22+
apt-get install -y \
23+
libopencv-dev && \
24+
apt-get autoremove -y --purge && \
25+
apt-get clean && \
26+
rm -rf /var/lib/apt/lists/*
27+
28+
# Configure and build \
29+
RUN source activate py_3.10 && \
30+
mkdir build && \
31+
cd build && \
32+
cmake .. \
33+
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
34+
-DGPU_RUNTIME=HIP \
35+
-DHIP_ROOT_DIR=/opt/rocm \
36+
-DOPENSPLAT_BUILD_SIMPLE_TRAINER=ON \
37+
-DCMAKE_PREFIX_PATH=/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch \
38+
-DCMAKE_INSTALL_PREFIX=/code/install && \
39+
make

Dockerfile.rocm6.4.0

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG UBUNTU_VERSION=24.04
2+
ARG TORCH_VERSION=2.3.0
3+
ARG ROCM_VERSION=6.4
4+
FROM rocm/pytorch:rocm${ROCM_VERSION}_ubuntu24.04_py3.12_pytorch_release_${TORCH_VERSION}
5+
6+
ARG LLVM_VERSION=19
7+
ARG CMAKE_BUILD_TYPE=Release
8+
9+
SHELL ["/bin/bash", "-c"]
10+
11+
# Env variables
12+
ENV DEBIAN_FRONTEND noninteractive
13+
14+
# Prepare directories
15+
WORKDIR /code
16+
17+
# Copy everything
18+
COPY . ./
19+
20+
# Install build dependencies
21+
RUN apt-get update && \
22+
apt-get install -y \
23+
libopencv-dev && \
24+
apt-get autoremove -y --purge && \
25+
apt-get clean && \
26+
rm -rf /var/lib/apt/lists/*
27+
28+
# Configure and build \
29+
RUN source activate py_3.12 && \
30+
mkdir build && \
31+
cd build && \
32+
cmake .. \
33+
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
34+
-DGPU_RUNTIME=HIP \
35+
-DHIP_ROOT_DIR=/opt/rocm \
36+
-DOPENSPLAT_BUILD_SIMPLE_TRAINER=ON \
37+
-DCMAKE_PREFIX_PATH=/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch \
38+
-DCMAKE_INSTALL_PREFIX=/code/install && \
39+
make

0 commit comments

Comments
 (0)