diff options
author | Stephen Sachs <stephenmsachs@gmail.com> | 2022-06-20 11:39:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 09:39:03 +0000 |
commit | 14349cb882d910567fddaac4d3924e889ef9013e (patch) | |
tree | 9f95100ff99c927018f19b5914f3eed95eeb0120 | |
parent | bc438ed4e9f37707ee34959edd554faa154f0321 (diff) | |
download | spack-14349cb882d910567fddaac4d3924e889ef9013e.tar.gz spack-14349cb882d910567fddaac4d3924e889ef9013e.tar.bz2 spack-14349cb882d910567fddaac4d3924e889ef9013e.tar.xz spack-14349cb882d910567fddaac4d3924e889ef9013e.zip |
lammps: add lammps_sizes variant (#31182)
This is translated to CMakes LAMMS_SIZES variable. Used to select integer sizes.
Co-authored-by: Stephen Sachs <stesachs@amazon.com>
-rw-r--r-- | var/spack/repos/builtin/packages/lammps/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py index 5824ee8069..248ed38fd5 100644 --- a/var/spack/repos/builtin/packages/lammps/package.py +++ b/var/spack/repos/builtin/packages/lammps/package.py @@ -117,6 +117,13 @@ class Lammps(CMakePackage, CudaPackage): description='(CUDA only) Enable tweaks for running ' + 'with Nvidia CUDA Multi-process services daemon') + variant( + 'lammps_sizes', default='smallbig', + description='LAMMPS integer sizes (smallsmall: all 32-bit, smallbig:' + + '64-bit #atoms #timesteps, bigbig: also 64-bit imageint, 64-bit atom ids)', + values=('smallbig', 'bigbig', 'smallsmall'), multi=False + ) + depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpiio') depends_on('fftw-api@3', when='+kspace') @@ -220,6 +227,9 @@ class Lammps(CMakePackage, CudaPackage): cxx_flags = '-Ofast -mfma -fvectorize -funroll-loops' args.append(self.define('CMAKE_CXX_FLAGS_RELEASE', cxx_flags)) + lammps_sizes = self.spec.variants['lammps_sizes'].value + args.append(self.define('LAMMPS_SIZES', lammps_sizes)) + args.append(self.define_from_variant('WITH_JPEG', 'jpeg')) args.append(self.define_from_variant('WITH_PNG', 'png')) args.append(self.define_from_variant('WITH_FFMPEG', 'ffmpeg')) |