ubuntu_install_opencl.sh 436 Bytes
Newer Older
1
# Install OpenCL runtime in nvidia docker.
2 3
apt-get update && apt-get install -y --no-install-recommends --force-yes \
        ocl-icd-opencl-dev \
4
        clinfo && \
5
    rm -rf /var/lib/apt/lists/*
6 7 8 9 10 11

mkdir -p /etc/OpenCL/vendors && \
    echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd

echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
    echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf