Make usage example consistent with current MV variants (#16468)
Since #9481 Python's None is not permitted as a value for MV variants. The string 'none' is used instead. Add the same fix for the amgx and lammps packages
This commit is contained in:

committed by
GitHub

parent
de71b2828f
commit
aa9c98b6a2
@@ -37,7 +37,7 @@ In order to use it, just add another base class to your package, for example:
|
||||
if '+cuda' in spec:
|
||||
options.append('-DWITH_CUDA=ON')
|
||||
cuda_arch = spec.variants['cuda_arch'].value
|
||||
if cuda_arch is not None:
|
||||
if cuda_arch != 'none':
|
||||
options.append('-DCUDA_FLAGS=-arch=sm_{0}'.format(cuda_arch[0]))
|
||||
else:
|
||||
options.append('-DWITH_CUDA=OFF')
|
||||
|
Reference in New Issue
Block a user