Open Umiiii opened 2 months ago
I spent a whole week on this project, so here are some tips for you to save the time:
apt-get update && apt-get install -y --no-install-recommends \ curl wget \ ocl-icd-libopencl1 \ opencl-headers \ nano \ build-essential \ clinfo pkg-config && \ rm -rf /var/lib/apt/lists/* mkdir -p /etc/OpenCL/vendors && \ echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd ln -s /usr/local/cuda/lib64/libOpenCL.so.1 /usr/lib/libOpenCL.so echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \ echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf export PATH=/usr/local/nvidia/bin:${PATH} export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH} # nvidia-container-runtime export NVIDIA_VISIBLE_DEVICES=all export NVIDIA_DRIVER_CAPABILITIES=compute,utility
I also created a github action to build:
https://github.com/Umiiii/profanity2/blob/master/.github/workflows/c-cpp.yml
I spent a whole week on this project, so here are some tips for you to save the time: