dealii: fix default of cuda_arch (#10690)
This commit is contained in:
parent
b43e8fcaa7
commit
2851b3f57c
@ -276,7 +276,7 @@ def cmake_args(self):
|
|||||||
if not spec.satisfies('^cuda@9:'):
|
if not spec.satisfies('^cuda@9:'):
|
||||||
options.append('-DDEAL_II_WITH_CXX14=OFF')
|
options.append('-DDEAL_II_WITH_CXX14=OFF')
|
||||||
cuda_arch = spec.variants['cuda_arch'].value
|
cuda_arch = spec.variants['cuda_arch'].value
|
||||||
if cuda_arch is not None and cuda_arch[0] is not '':
|
if cuda_arch != 'none':
|
||||||
if len(cuda_arch) > 1:
|
if len(cuda_arch) > 1:
|
||||||
raise InstallError(
|
raise InstallError(
|
||||||
'deal.II only supports compilation for a single GPU!'
|
'deal.II only supports compilation for a single GPU!'
|
||||||
|
Loading…
Reference in New Issue
Block a user