summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-05-05 20:22:32 +0200
committerGitHub <noreply@github.com>2020-05-05 20:22:32 +0200
commitaa9c98b6a2db58c8097a81e8074496d2c1c790d1 (patch)
treee9bb6d628e5dfbf42c1df7e59d031e51db73be33 /lib
parentde71b2828f1813e7cb4b1ae556aee0a78850a3e1 (diff)
downloadspack-aa9c98b6a2db58c8097a81e8074496d2c1c790d1.tar.gz
spack-aa9c98b6a2db58c8097a81e8074496d2c1c790d1.tar.bz2
spack-aa9c98b6a2db58c8097a81e8074496d2c1c790d1.tar.xz
spack-aa9c98b6a2db58c8097a81e8074496d2c1c790d1.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/build_systems/cudapackage.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/docs/build_systems/cudapackage.rst b/lib/spack/docs/build_systems/cudapackage.rst
index b4561c69ed..15150599d3 100644
--- a/lib/spack/docs/build_systems/cudapackage.rst
+++ b/lib/spack/docs/build_systems/cudapackage.rst
@@ -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')