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