summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2018-10-19 23:59:46 +0200
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-19 14:59:46 -0700
commit20d830f8df5829839d2cc1aa91ed76a710b02f63 (patch)
treedcd957460d9a7d5eafcb5f893ad12f6a2a964976
parente219bc39dcad6ee4611d8da6ed0401b3c2131da3 (diff)
downloadspack-20d830f8df5829839d2cc1aa91ed76a710b02f63.tar.gz
spack-20d830f8df5829839d2cc1aa91ed76a710b02f63.tar.bz2
spack-20d830f8df5829839d2cc1aa91ed76a710b02f63.tar.xz
spack-20d830f8df5829839d2cc1aa91ed76a710b02f63.zip
new package: dbcsr (#9491)
Also add its dependency, py-fypp
-rw-r--r--var/spack/repos/builtin/packages/dbcsr/package.py40
-rw-r--r--var/spack/repos/builtin/packages/py-fypp/package.py15
2 files changed, 55 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dbcsr/package.py b/var/spack/repos/builtin/packages/dbcsr/package.py
new file mode 100644
index 0000000000..af1ba5f749
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dbcsr/package.py
@@ -0,0 +1,40 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Dbcsr(CMakePackage):
+ """Distributed Block Compressed Sparse Row matrix library."""
+
+ homepage = "https://github.com/cp2k/dbcsr"
+ url = "https://github.com/cp2k/dbcsr/archive/v1.0.0-rc.0.tar.gz"
+
+ version('develop', git='https://github.com/cp2k/dbcsr.git', branch='develop')
+
+ variant('mpi', default=True, description='Compile with MPI')
+ variant('openmp', default=False, description='Build with OpenMP support')
+
+ depends_on('blas')
+ depends_on('lapack')
+ depends_on('mpi', when='+mpi')
+ depends_on('py-fypp')
+
+ def cmake_args(self):
+ spec = self.spec
+ args = [
+ '-DUSE_MPI=%s' % ('ON' if '+mpi' in spec else 'OFF'),
+ '-DUSE_OPENMP=%s' % (
+ 'ON' if '+openmp' in spec else 'OFF'),
+ '-DWITH_C_API=ON',
+ '-DLAPACK_FOUND=true',
+ '-DLAPACK_LIBRARIES=%s' % spec['lapack'].libs.joined(';'),
+ '-DBLAS_FOUND=true',
+ '-DBLAS_LIBRARIES=%s' % spec['blas'].libs.joined(';'),
+ '-DWITH_EXAMPLES=OFF',
+ '-DBUILD_SHARED_LIBS=ON'
+ ]
+
+ return args
diff --git a/var/spack/repos/builtin/packages/py-fypp/package.py b/var/spack/repos/builtin/packages/py-fypp/package.py
new file mode 100644
index 0000000000..2f6aaa9fe3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-fypp/package.py
@@ -0,0 +1,15 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyFypp(PythonPackage):
+ """Python powered Fortran preprocessor."""
+
+ homepage = "https://github.com/aradi/fypp"
+ url = "https://github.com/aradi/fypp/archive/2.1.1.zip"
+
+ version('2.1.1', sha256='3744ad17045e91466bbb75a33ce0cab0f65bc2c377127067a932cdf15655e049')