diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-05-05 20:22:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 20:22:32 +0200 |
commit | aa9c98b6a2db58c8097a81e8074496d2c1c790d1 (patch) | |
tree | e9bb6d628e5dfbf42c1df7e59d031e51db73be33 /var/spack/repos/builtin/packages/lammps/package.py | |
parent | de71b2828f1813e7cb4b1ae556aee0a78850a3e1 (diff) | |
download | spack-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 'var/spack/repos/builtin/packages/lammps/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/lammps/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py index 2320cf0050..5bf2986858 100644 --- a/var/spack/repos/builtin/packages/lammps/package.py +++ b/var/spack/repos/builtin/packages/lammps/package.py @@ -150,7 +150,7 @@ class Lammps(CMakePackage, CudaPackage): args.append('-DPKG_GPU=ON') args.append('-DGPU_API=cuda') cuda_arch = spec.variants['cuda_arch'].value - if cuda_arch is not None: + if cuda_arch != 'none': args.append('-DGPU_ARCH=sm_{0}'.format(cuda_arch[0])) args.append('-DCUDA_MPS_SUPPORT={0}'.format( 'ON' if '+cuda_mps' in spec else 'OFF')) |