From 055c9d125d29606947f2fd88a06e279667a74648 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 30 May 2022 12:53:15 -0700 Subject: [PATCH] CUDA: make cuda_arch sticky (#30910) --- lib/spack/spack/build_systems/cuda.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/spack/spack/build_systems/cuda.py b/lib/spack/spack/build_systems/cuda.py index 312f2d8f46..81994f0106 100644 --- a/lib/spack/spack/build_systems/cuda.py +++ b/lib/spack/spack/build_systems/cuda.py @@ -37,6 +37,7 @@ class CudaPackage(PackageBase): variant('cuda_arch', description='CUDA architecture', values=spack.variant.any_combination_of(*cuda_arch_values), + sticky=True, when='+cuda') # https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-examples