-
Notifications
You must be signed in to change notification settings - Fork 13
/
DockerfileHIP
31 lines (25 loc) · 1.2 KB
/
DockerfileHIP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This Dockerfile will build AMD HIP binaries (.fatbin files)
# All you need to do is the following:
# On Windows:
# * Install Docker Desktop
# * Follow instructions on how to install WSL2
# * Make sure Docker Desktop is running
# * Use a terminal to build a Docker image: 'docker build -f DockerfileHIP -t ubuntu-cycles-hip-build .'
# * After that, run the Docker image in a container while mounting your Rhino repository root:
# 'docker run -it -v D:/dev/mcneel/rhino-8.x:/rhino/rhino-8.x ubuntu-cycles-hip-build'
# * The .fatbin files should en up in the cycles/cycles/install/lib directory
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y g++
RUN apt-get install -y cmake
RUN apt-get install -y subversion
RUN apt-get install -y git
RUN apt-get install -y python3
RUN apt-get install -y wget
RUN apt-get install -y dos2unix
WORKDIR /rhino
RUN wget https://repo.radeon.com/amdgpu-install/6.2.2/ubuntu/jammy/amdgpu-install_6.2.60202-1_all.deb
RUN apt-get install -y ./amdgpu-install_6.2.60202-1_all.deb
RUN amdgpu-install -y --no-dkms --usecase=rocm
CMD ["bash", "-c", "cd /rhino/rhino-8.x/src4/rhino4/Plug-ins/RDK/cycles/cycles && dos2unix make_hip.sh && ./make_hip.sh Release"]
#ENTRYPOINT [ "bash" ]