Support older cuda arch capabilties. (#18597)

This commit is contained in:
Brian Van Essen 2020-09-09 19:42:34 -07:00 committed by GitHub
parent b014ffcd3d
commit 87dc324f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,6 +51,8 @@ class Dihydrogen(CMakePackage, CudaPackage):
# Override the default set of CUDA architectures with the relevant # Override the default set of CUDA architectures with the relevant
# subset from lib/spack/spack/build_systems/cuda.py # subset from lib/spack/spack/build_systems/cuda.py
cuda_arch_values = [ cuda_arch_values = [
'30', '32', '35', '37',
'50', '52', '53',
'60', '61', '62', '60', '61', '62',
'70', '72', '75', '70', '72', '75',
'80' '80'
@ -104,8 +106,6 @@ class Dihydrogen(CMakePackage, CudaPackage):
illegal_cuda_arch_values = [ illegal_cuda_arch_values = [
'10', '11', '12', '13', '10', '11', '12', '13',
'20', '21', '20', '21',
'30', '32', '35', '37',
'50', '52', '53',
] ]
for value in illegal_cuda_arch_values: for value in illegal_cuda_arch_values:
conflicts('cuda_arch=' + value) conflicts('cuda_arch=' + value)