This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
80 lines (70 loc) · 2.04 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM ubuntu:18.04
ARG PREFIX=/usr/local
ARG GPU_ARCH=";"
ARG MIOTENSILE_VER="default"
# Support multiarch
RUN dpkg --add-architecture i386
# Add rocm repository
RUN sh -c 'echo deb [arch=amd64 trusted=yes] http://repo.radeon.com/rocm/apt/.apt_4.3/ xenial main > /etc/apt/sources.list.d/rocm.list'
# RUN sh -c 'echo deb [arch=amd64 trusted=yes] http://compute-artifactory.amd.com/artifactory/list/rocm-osdb-deb/ compute-rocm-dkms-amd-feature-targetid 3004 > /etc/apt/sources.list.d/rocm.list'
# Install dependencies
RUN apt-get update --fix-missing --allow-insecure-repositories && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
sudo \
ca-certificates \
apt-utils \
build-essential \
make \
cmake \
curl \
doxygen \
g++ \
gdb \
git \
graphviz \
hip-rocclr \
lcov \
libelf-dev \
libncurses5-dev \
libpthread-stubs0-dev \
libnuma1 \
llvm-6.0-dev \
libboost-all-dev \
miopengemm \
pkg-config \
python \
python3 \
python-yaml \
python3-yaml \
python-dev \
python3-dev \
python-pip \
python3-pip \
python3-distutils \
python3-pytest \
python3-setuptools \
python3-venv \
software-properties-common \
wget \
pkg-config \
rocm-dev \
rocm-device-libs \
rocm-opencl \
rocm-opencl-dev \
zlib1g-dev \
libomp-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
# Install cget
RUN pip3 install wheel && pip3 install pyyaml && pip3 install cget
RUN pip install https://github.com/pfultz2/rbuild/archive/master.tar.gz
# Add symlink to /opt/rocm
RUN [ -d /opt/rocm ] || ln -sd $(realpath /opt/rocm-*) /opt/rocm
# Install rocm-cmake
RUN cget -p $PREFIX install RadeonOpenCompute/rocm-cmake@master
# Install dependencies
RUN cget -p $PREFIX install pfultz2/rocm-recipes
RUN cget -p $PREFIX install kitware/[email protected]
ADD requirements.txt /requirements.txt
RUN CXXFLAGS='-isystem $PREFIX/include' cget -p $PREFIX install -f /requirements.txt