Skip to content

Commit 1f4dc9b

Browse files
authored
Merge pull request #219 from charyang-ai/main
Enable OpenSplat on AMD Radeon R9700 graphic card with ROCm 7.0.0 and libtorch 2.5.1
2 parents 15b7e80 + 89654c3 commit 1f4dc9b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Dockerfile.rocm7

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.5.1
3+
ARG ROCM_VERSION=7.0
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/venv/lib/python3.12/site-packages/torch \
38+
-DCMAKE_INSTALL_PREFIX=/code/install && \
39+
make

0 commit comments

Comments
 (0)