diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-08-03 14:46:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 05:46:38 -0700 |
commit | fa729858ac0c27131aaf51dde213240e619a3909 (patch) | |
tree | 3b149df1fdfedb572f6b9213d2785a00b6096208 | |
parent | 62d59f0fb71be581247ec1195f1a2da71f736903 (diff) | |
download | spack-fa729858ac0c27131aaf51dde213240e619a3909.tar.gz spack-fa729858ac0c27131aaf51dde213240e619a3909.tar.bz2 spack-fa729858ac0c27131aaf51dde213240e619a3909.tar.xz spack-fa729858ac0c27131aaf51dde213240e619a3909.zip |
h5bench: new package (#25190)
-rw-r--r-- | var/spack/repos/builtin/packages/h5bench/package.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/h5bench/package.py b/var/spack/repos/builtin/packages/h5bench/package.py new file mode 100644 index 0000000000..46fcc53021 --- /dev/null +++ b/var/spack/repos/builtin/packages/h5bench/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2021 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 H5bench(CMakePackage): + """A benchmark suite for measuring HDF5 performance.""" + + homepage = "https://github.com/hpc-io/h5bench" + git = "https://github.com/hpc-io/h5bench.git" + + version('master', branch='master') + + depends_on('cmake@3.10:', type='build') + depends_on('mpi') + depends_on('hdf5+mpi@1.12.0:1.99.99,develop-1.12:') + + @run_after('install') + def install_config(self): + install_tree('h5bench_patterns/sample_config', + self.prefix.share.patterns) + install('metadata_stress/hdf5_iotest.ini', + self.prefix.share) + + def setup_build_environment(self, env): + env.set('HDF5_HOME', self.spec['hdf5'].prefix) |