CUDA: make cuda_arch sticky (#30910)

This commit is contained in:
Adam J. Stewart 2022-05-30 12:53:15 -07:00 committed by GitHub
parent a94438b1f5
commit 055c9d125d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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