-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
43 lines (34 loc) · 1.59 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
FROM nvidia/cuda:10.0-devel-ubuntu18.04
RUN apt update && \
apt upgrade -y && \
apt install -y wget git cmake dh-autoreconf libomp-dev
# install git lfs
ARG git_lfs_url=https://github.com/git-lfs/git-lfs/releases/download/v2.7.1/git-lfs-linux-amd64-v2.7.1.tar.gz
RUN wget ${git_lfs_url} -O git-lfs.tar.gz -q && \
tar -xzf git-lfs.tar.gz && \
./install.sh && \
rm git-lfs.tar.gz install.sh git-lfs README.md CHANGELOG.md
# install m4ri library
RUN git clone https://[email protected]/vkutuev/m4ri.git && \
cd m4ri && autoreconf --install && autoreconf --install && \
./configure --enable-openmp && make install
# install anaconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -q && \
chmod +x miniconda.sh && \
./miniconda.sh -b -p /usr/local/miniconda && \
rm miniconda.sh
ENV PATH /usr/local/miniconda/bin:$PATH
RUN conda install numpy tqdm cudatoolkit numba scipy six
# install mono
RUN apt install gnupg ca-certificates && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
apt update
RUN apt install -y mono-devel
#install m4
RUN apt-get install m4 && \
wget http://faculty.cse.tamu.edu/davis/GraphBLAS/GraphBLAS-3.1.0.tar.gz && tar -zxvf GraphBLAS*.tar.gz && rm *.tar.gz && cd GraphBLAS/ && \
JOBS=32 CC=gcc make && make install
RUN mkdir work
WORKDIR /work
CMD ["python", "testing_system.py", "tests.csv"]