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
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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.package import *
class Hdf5VolAsync(CMakePackage):
"""This package enables asynchronous IO in HDF5."""
homepage = "https://hdf5-vol-async.readthedocs.io"
git = "https://github.com/hpc-io/vol-async.git"
maintainers = ["hyoklee", "houjun", "jeanbez"]
tags = ["e4s"]
version("develop", branch="develop")
version("1.3", tag="v1.3")
version("1.2", tag="v1.2")
version("1.1", tag="v1.1")
version("1.0", tag="v1.0")
depends_on("mpi")
depends_on("argobots@main")
depends_on("hdf5 +mpi +threadsafe")
depends_on("hdf5@1.13.0:1.13.2", when="@:1.3")
depends_on("hdf5@1.13.3:", when="@1.4:")
def setup_run_environment(self, env):
env.set("HDF5_PLUGIN_PATH", self.spec.prefix.lib)
vol_connector = "async under_vol=0;under_info=[]"
env.set("HDF5_VOL_CONNECTOR", vol_connector)
env.set("MPICH_MAX_THREAD_SAFETY", "multiple")
def cmake_args(self):
"""Populate cmake arguments for HDF5 VOL."""
args = [
self.define("CMAKE_C_COMPILER", self.spec["mpi"].mpicc),
self.define("BUILD_SHARED_LIBS", True),
self.define("BUILD_TESTING", self.run_tests),
]
return args
def check(self):
if self.run_tests:
with working_dir(self.build_directory):
make("test")
|