Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created March 31, 2023 22:58
Show Gist options
  • Save Merwanski/1f5f94508b383d6c994e211cbe466743 to your computer and use it in GitHub Desktop.
Save Merwanski/1f5f94508b383d6c994e211cbe466743 to your computer and use it in GitHub Desktop.
Dockerfile OpenCL
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y upgrade \
&& apt-get install -y \
apt-utils \
unzip \
tar \
curl \
xz-utils \
ocl-icd-libopencl1 \
opencl-headers \
clinfo \
;
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment