We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f50c27 + d04f622 commit d72af70Copy full SHA for d72af70
opt/build/docker/templates/gpu.yml
@@ -1,6 +1,7 @@
1
# given the cuda version, generate the paths so that we don't manually maintain them
2
{% set cuda_list = REDIS_CUDA_VERSION.split("-") %}
3
-{% set cuda_version = cuda_list[0] %}
+{% set cuda_parts = cuda_list[0].split(".") %}
4
+{% set cuda_version = cuda_parts[0] + "." + cuda_parts[1] %}
5
ENV NVIDIA_VISIBLE_DEVICES all
6
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
7
RUN echo export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-{{cuda_version}}/lib64:/usr/local/cuda-{{cuda_version}}/compat/:$LD_LIBRARY_PATH > /etc/profile.d/cuda.sh
0 commit comments