
* VTK-m: Add conflict for 64 bit ids and Ascent types * Fides: Add version 1.2 * [@spackbot] updating style on behalf of kwryankrattiger
48 lines
1.8 KiB
Python
48 lines
1.8 KiB
Python
# Copyright 2013-2023 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 Fides(CMakePackage):
|
|
"""A library that provides a schema for ADIOS2 streams."""
|
|
|
|
homepage = "https://gitlab.kitware.com/vtk/fides"
|
|
url = "https://gitlab.kitware.com/vtk/fides/-/archive/v1.0.0/fides-v1.0.0.tar.gz"
|
|
git = "https://gitlab.kitware.com/vtk/fides.git"
|
|
|
|
maintainers("caitlinross", "dpugmire")
|
|
|
|
version("master", branch="master")
|
|
version("1.2.0", sha256="12be939d75c765dab9241f9ed2b64af01cce2b10281de402f64fb685e6ccd7df")
|
|
version("1.1.0", sha256="40d2e08b8d5cfdfc809eae6ed2ae0731108ce3b1383485f4934a5ec8aaa9425e")
|
|
version("1.0.0", sha256="c355fdb4ca3790c1fa9a4491a0d294b8f883b6946c540ad9e5633c9fd8c8c3aa")
|
|
variant("mpi", default=True, description="build mpi support")
|
|
|
|
# Certain CMake versions have been found to break for our use cases
|
|
depends_on("cmake@3.14.1:3.14,3.18.2:", type="build")
|
|
|
|
depends_on("mpi", when="+mpi")
|
|
depends_on("adios2")
|
|
# Type check failures when using 32 bit IDs and ADIOS2 with ZFP in older
|
|
# versions of Fides
|
|
depends_on("adios2~zfp", when="@:1.1 ^vtk-m ~64bitids")
|
|
depends_on("vtk-m")
|
|
|
|
# Fix missing implicit includes
|
|
@when("%gcc@7:")
|
|
def setup_build_environment(self, env):
|
|
env.append_flags("CXXFLAGS", "-include limits -include numeric")
|
|
|
|
def cmake_args(self):
|
|
spec = self.spec
|
|
options = [
|
|
self.define("VTKm_DIR", spec["vtk-m"].prefix),
|
|
self.define("ADIOS2_DIR", spec["adios2"].prefix),
|
|
self.define("FIDES_ENABLE_TESTING", "OFF"),
|
|
self.define("FIDES_ENABLE_EXAMPLES", "OFF"),
|
|
]
|
|
return options
|