forked from florianroesler/dopencl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_ubuntu_devenv
32 lines (28 loc) · 1.06 KB
/
Dockerfile_ubuntu_devenv
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
FROM ubuntu:bionic AS builder
# Install dependencies
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
# Build utilities
cmake make g++ \
# Required by dopencl/icdpp, dopencl/dclasio
libboost-dev \
# Required by dopencl/daemon
libboost-program-options-dev \
# Required by dopencl/dclasio
libboost-system-dev \
# Required by tests
libboost-test-dev libtiff-dev netcat-openbsd psmisc \
# Development utilities
gdb nano clinfo git \
# NB: Both C and C++ headers + libOpenCL required
opencl-headers ocl-icd-opencl-dev
# OpenCL runtime for nvidia-docker. Based on the nvidia/opencl DockerHub image
# See https://gitlab.com/nvidia/container-images/opencl/blob/ubuntu18.04/runtime/Doc$
RUN mkdir -p /etc/OpenCL/vendors \
&& echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
# nvidia-container-runtime
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
# Copy source files in
COPY . /tmp/dopencl
WORKDIR /tmp/dopencl