File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed
Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments