summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/hermes/package.py
blob: cb1500a86d7577f601a6f84725e27552199fcd63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2013-2022 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 Hermes(CMakePackage):
    """
    Hermes is a heterogeneous-aware, multi-tiered, dynamic, and distributed
    I/O buffering system that aims to significantly accelerate I/O performance.
    """

    homepage = "http://www.cs.iit.edu/~scs/assets/projects/Hermes/Hermes.html"
    git = "https://github.com/HDFGroup/hermes.git"
    maintainers = ['hyoklee']

    version('master', branch='master')
    version('0.4.0-beta', url="https://github.com/HDFGroup/hermes/archive/v0.4.0-beta.tar.gz", sha256='e8bd0b701149844f7f113a55a107e40b3579945d70ca2cb8ce9db5b5a131efdb')

    variant('vfd', default=False, description='Enable HDF5 VFD')

    depends_on('mochi-thallium~cereal@0.8:')
    depends_on('catch2@2.13:')
    depends_on('or-tools')
    depends_on('mpi')
    depends_on('hdf5@1.13.0:', when='+vfd')

    def cmake_args(self):
        args = [
            self.define('HERMES_RPC_THALLIUM', True),
            self.define('HERMES_INSTALL_TESTS', True),
            self.define('BUILD_TESTING', True),
            self.define_from_variant('HERMES_ENABLE_VFD', 'vfd'),
        ]
        return args