summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Salmond <js947@users.noreply.github.com>2019-06-07 13:43:13 +0100
committerChristoph Junghans <junghans@lanl.gov>2019-06-07 06:43:13 -0600
commit9c1c50fb7632d179cae32b28e4561c9e041b97f0 (patch)
treed45efeb5460f367064bb002bef510dd2754afe4d
parent06cc799fd33cf38a3f6acf14d99a7c3c955cab09 (diff)
downloadspack-9c1c50fb7632d179cae32b28e4561c9e041b97f0.tar.gz
spack-9c1c50fb7632d179cae32b28e4561c9e041b97f0.tar.bz2
spack-9c1c50fb7632d179cae32b28e4561c9e041b97f0.tar.xz
spack-9c1c50fb7632d179cae32b28e4561c9e041b97f0.zip
add openmp variant to lammps (#11643)
* add openmp variant to lammps * add conflict for %gcc@9: and +openmp
-rw-r--r--var/spack/repos/builtin/packages/lammps/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lammps/package.py b/var/spack/repos/builtin/packages/lammps/package.py
index 2ce705f68d..fafbcb4057 100644
--- a/var/spack/repos/builtin/packages/lammps/package.py
+++ b/var/spack/repos/builtin/packages/lammps/package.py
@@ -59,6 +59,7 @@ class Lammps(CMakePackage):
description='Build the liblammps in addition to the executable')
variant('mpi', default=True,
description='Build with mpi')
+ variant('openmp', default=True, description='Build with OpenMP')
variant('exceptions', default=False,
description='Build with lammps exceptions')
@@ -87,6 +88,7 @@ class Lammps(CMakePackage):
conflicts('+user-misc', when='~manybody')
conflicts('+user-phonon', when='~kspace')
conflicts('+user-misc', when='~manybody')
+ conflicts('%gcc@9:', when='+openmp')
patch("lib.patch", when="@20170901")
patch("660.patch", when="@20170922")
@@ -109,7 +111,9 @@ class Lammps(CMakePackage):
'ON' if '+exceptions' in spec else 'OFF'),
'-D{0}_MPI={1}'.format(
mpi_prefix,
- 'ON' if '+mpi' in spec else 'OFF')
+ 'ON' if '+mpi' in spec else 'OFF'),
+ '-DBUILD_OMP={0}'.format(
+ 'ON' if '+openmp' in spec else 'OFF'),
]
if spec.satisfies('@20180629:+lib'):