Created
March 31, 2023 22:58
-
-
Save Merwanski/1f5f94508b383d6c994e211cbe466743 to your computer and use it in GitHub Desktop.
Dockerfile OpenCL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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