CUDA: make cuda_arch sticky (#30910)
This commit is contained in:
parent
a94438b1f5
commit
055c9d125d
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ class CudaPackage(PackageBase):
|
||||||
variant('cuda_arch',
|
variant('cuda_arch',
|
||||||
description='CUDA architecture',
|
description='CUDA architecture',
|
||||||
values=spack.variant.any_combination_of(*cuda_arch_values),
|
values=spack.variant.any_combination_of(*cuda_arch_values),
|
||||||
|
sticky=True,
|
||||||
when='+cuda')
|
when='+cuda')
|
||||||
|
|
||||||
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-examples
|
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-examples
|
||||||
|
|
Loading…
Reference in a new issue