From 3b27404865c20193667cd614ec12f2f354a08798 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 7 Aug 2023 23:19:16 +1000 Subject: [PATCH] Make dockerfile respect specified cuda version (#3474) --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7cc0ff15..3c5108d8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,7 +16,7 @@ RUN . /build/venv/bin/activate && \ # https://developer.nvidia.com/cuda-gpus # for a rtx 2060: ARG TORCH_CUDA_ARCH_LIST="7.5" -ARG TORCH_CUDA_ARCH_LIST="3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX" +ARG TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX}" RUN . /build/venv/bin/activate && \ python3 setup_cuda.py bdist_wheel -d .