From ec64d5dd07603802e3dc0342ccfcdb1351affe7c Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 12 Aug 2026 20:43:00 +0200 Subject: [PATCH] sci-ml/pytorch: fix TORCH_CUDA_ARCH_LIST default Bug: https://bugs.gentoo.org/980675 Signed-off-by: Alfredo Tupone --- sci-ml/pytorch/pytorch-2.13.0-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-ml/pytorch/pytorch-2.13.0-r3.ebuild b/sci-ml/pytorch/pytorch-2.13.0-r3.ebuild index 54f1028a0e7d2..40213371b6598 100644 --- a/sci-ml/pytorch/pytorch-2.13.0-r3.ebuild +++ b/sci-ml/pytorch/pytorch-2.13.0-r3.ebuild @@ -326,7 +326,7 @@ python_compile() { addpredict "/dev/char/" local -x CMAKE_CUDA_FLAGS="$(cuda_gccdir -f | tr -d \")" - local -x TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:7.0}" + local -x TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-7.0}" local -x USE_CUDNN=ON local -x USE_FLASH_ATTENTION=OFF local -x USE_MEM_EFF_ATTENTION=OFF