-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile-gpu
46 lines (38 loc) · 1.19 KB
/
Dockerfile-gpu
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
FROM tensorflow/tensorflow:2.4.0-gpu
ADD http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz /solvers/metis-5.1.0.tar.gz
ENV METIS_DLL=/solvers/metis-5.1.0/build/Linux-x86_64/libmetis/libmetis.so
RUN apt-get clean \
&& cd /var/lib/apt \
&& mv lists lists.old \
&& mkdir -p lists/partial \
&& apt-get update \
&& apt-get upgrade -y \
&& mkdir -p /usr/share/man/man1 \
&& apt-get -y install g++ make libxml2-dev zlib1g-dev cmake openjdk-11-jdk libopenblas-dev \
&& cd /solvers/ \
&& tar -xvf metis-5.1.0.tar.gz \
&& rm metis-5.1.0.tar.gz \
&& cd /solvers/metis-5.1.0 \
&& make config shared=1 \
&& make \
&& make install \
&& pip install click numpy python-igraph networkx==2.1.0 metis turbine cython threadpoolctl jax jaxlib
COPY solvers/htd-master /solvers/htd-master
RUN cd /solvers/htd-master \
&& cmake . \
&& make
COPY solvers/TCS-Meiji /solvers/TCS-Meiji
RUN cd /solvers/TCS-Meiji \
&& make heuristic
COPY solvers/flow-cutter-pace17 /solvers/flow-cutter-pace17
RUN cd /solvers/flow-cutter-pace17 \
&& make
COPY solvers/hicks /solvers/hicks
RUN cd /solvers/hicks \
&& make
COPY solvers/portfolio /solvers/portfolio
RUN cd /solvers/portfolio \
&& make
COPY src /src
RUN cd /src \
&& make