-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
27 lines (22 loc) · 1.09 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
# From https://github.com/NVIDIA/nvidia-docker/wiki/Frequently-Asked-Questions#is-opencl-supported
FROM nvidia/opencl:devel-ubuntu18.04
# We keep it simple and do everything as root. First go to our home directory.
WORKDIR /root
# Then install the necessary dependencies.
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update \
&& apt -y install binutils build-essential nvidia-cuda-toolkit sqlite3 libsqlite3-dev libtinfo-dev python-pip git curl wget bc libffi-dev libgmp-dev zlib1g-dev texlive texlive-latex-extra texlive-fonts-recommended dvipng locales \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN pip install opentuner matplotlib
RUN curl -sSL https://get.haskellstack.org/ | sh
# Finally, fetch the repository.
RUN git clone --recursive https://github.com/diku-dk/futhark-ppopp19.git
# Initialize the repository by predownloading and prebuilding
# necessary components.
WORKDIR /root/futhark-ppopp19
RUN make artifact
# Run bash inside the fetched repository when the container is opened. At this
# point the user just needs to type 'make'.
CMD ["bash"]