summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew LeGendre <legendre1@llnl.gov>2019-10-11 12:23:29 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-10-11 21:22:33 -0700
commit87fa7c15fc1f529debf7b010a5e3cd8ee4fb3f04 (patch)
tree6c335d28f3022d75a7a9095622afd8b3894fe1c8
parentf8a4a3802c294977f44bf9a7881363c3a3def32d (diff)
downloadspack-87fa7c15fc1f529debf7b010a5e3cd8ee4fb3f04.tar.gz
spack-87fa7c15fc1f529debf7b010a5e3cd8ee4fb3f04.tar.bz2
spack-87fa7c15fc1f529debf7b010a5e3cd8ee4fb3f04.tar.xz
spack-87fa7c15fc1f529debf7b010a5e3cd8ee4fb3f04.zip
Add adiak package, version 0.1.1
-rw-r--r--var/spack/repos/builtin/packages/adiak/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/adiak/package.py b/var/spack/repos/builtin/packages/adiak/package.py
new file mode 100644
index 0000000000..774ef198c0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/adiak/package.py
@@ -0,0 +1,38 @@
+# Copyright 2013-2019 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 Adiak(CMakePackage):
+ """Adiak collects metadata about HPC application runs and provides it
+ to tools."""
+
+ homepage = "https://github.com/LLNL/Adiak"
+ url = "https://github.com/LLNL/Adiak/releases/download/v0.1/adiak-v0.1.1.tar.gz"
+
+ variant('mpi', default=True, description='Build with MPI support')
+ variant('shared', default=True, description='Build dynamic libraries')
+
+ version('0.1.1', sha256='438e4652e15e206cd0019423d829fd4f2329323ff0c8861d9586bae051d9624b')
+
+ depends_on('mpi', when='+mpi')
+
+ def cmake_args(self):
+ args = []
+ if self.spec.satisfies('+mpi'):
+ args.append('-DMPICXX=%s' % self.spec['mpi'].mpicxx)
+ args.append('-DMPICC=%s' % self.spec['mpi'].mpicc)
+ args.append('-DENABLE_MPI=ON')
+ else:
+ args.append('-DENABLE_MPI=OFF')
+
+ if (self.spec.satisfies('+shared')):
+ args.append('-DBUILD_SHARED_LIBS=ON')
+ else:
+ args.append('-DBUILD_SHARED_LIBS=OFF')
+
+ args.append('-DENABLE_TESTS=OFF')
+ return args