diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2022-05-30 12:53:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-30 12:53:15 -0700 |
commit | 055c9d125d29606947f2fd88a06e279667a74648 (patch) | |
tree | b7c4da948330fefe66e348ecc17c0bceaaa2e3a1 | |
parent | a94438b1f5862261614076567a1ad11c6e5d6414 (diff) | |
download | spack-055c9d125d29606947f2fd88a06e279667a74648.tar.gz spack-055c9d125d29606947f2fd88a06e279667a74648.tar.bz2 spack-055c9d125d29606947f2fd88a06e279667a74648.tar.xz spack-055c9d125d29606947f2fd88a06e279667a74648.zip |
CUDA: make cuda_arch sticky (#30910)
-rw-r--r-- | lib/spack/spack/build_systems/cuda.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |