Loading scripts/spack/packages/gekkofs/package.py +4 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ to I/O, which reduces interferences and improves performance.""" variant('forwarding', default=False, description='Enables the GekkoFS I/O forwarding mode.') variant('agios', default=False, description='Enables the AGIOS scheduler for the forwarding mode.') variant('guided_distributor', default=False, description='Enables the guided distributor.') # variant('prometheus', default=False, description='Enables Prometheus support for statistics.') variant('prometheus', default=False, description='Enables Prometheus support for statistics.') variant('dedicated_psm2', default=False, description='Use dedicated _non-system_ opa-psm2 version 11.2.185.') variant('compile', default='x86', multi=False, values=('x86','powerpc','arm'), description='Architecture to compile syscall intercept.') # general dependencies Loading Loading @@ -68,6 +68,8 @@ to I/O, which reduces interferences and improves performance.""" # Agios I/O forwarding depends_on('agios@1.0', when='@0.8: +agios') depends_on('agios@latest', when='@master +agios') # Prometheus CPP depends_on('prometheus-cpp', when='@0.9:,latest +prometheus') def cmake_args(self): """Set up GekkoFS CMake arguments""" Loading @@ -76,7 +78,7 @@ to I/O, which reduces interferences and improves performance.""" self.define_from_variant('GKFS_ENABLE_FORWARDING', 'forwarding'), self.define_from_variant('GKFS_ENABLE_AGIOS', 'agios'), self.define_from_variant('GKFS_USE_GUIDED_DISTRIBUTION', 'guided_distributor'), # self.define_from_variant('GKFS_ENABLE_PROMETHEUS', 'prometheus'), self.define_from_variant('GKFS_ENABLE_PROMETHEUS', 'prometheus'), ] return args Loading scripts/spack/packages/prometheus-cpp/package.py 0 → 100644 +41 −0 Original line number Diff line number Diff line # 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) # ---------------------------------------------------------------------------- # If you submit this package back to Spack as a pull request, # please first remove this boilerplate and all FIXME comments. # # This is a template package file for Spack. We've put "FIXME" # next to all the things you'll want to change. Once you've handled # them, you can save this file and test your package like this: # # spack install prometheus-cpp # # You can edit this file again by typing: # # spack edit prometheus-cpp # # See the Spack documentation for more information on packaging. # ---------------------------------------------------------------------------- from spack.package import * class PrometheusCpp(CMakePackage): """Prometheus CPP bindings.""" # FIXME: Add a proper url for your package's homepage here. homepage = "https://gitgub.com/jupp0r/prometheus-cpp" url = "https://github.com/jupp0r/prometheus-cpp/releases/download/v1.0.0/prometheus-cpp-with-submodules.tar.gz" # FIXME: Add a list of GitHub accounts to # notify when the package is updated. # maintainers("github_user1", "github_user2") version("1.0.0", sha256="593ea4e2b6f4ecf9bd73136e35f5ec66a69249f8cbbb90963e9e04517fb471c0") # FIXME: Add dependencies if required. # depends_on("foo") Loading
scripts/spack/packages/gekkofs/package.py +4 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ to I/O, which reduces interferences and improves performance.""" variant('forwarding', default=False, description='Enables the GekkoFS I/O forwarding mode.') variant('agios', default=False, description='Enables the AGIOS scheduler for the forwarding mode.') variant('guided_distributor', default=False, description='Enables the guided distributor.') # variant('prometheus', default=False, description='Enables Prometheus support for statistics.') variant('prometheus', default=False, description='Enables Prometheus support for statistics.') variant('dedicated_psm2', default=False, description='Use dedicated _non-system_ opa-psm2 version 11.2.185.') variant('compile', default='x86', multi=False, values=('x86','powerpc','arm'), description='Architecture to compile syscall intercept.') # general dependencies Loading Loading @@ -68,6 +68,8 @@ to I/O, which reduces interferences and improves performance.""" # Agios I/O forwarding depends_on('agios@1.0', when='@0.8: +agios') depends_on('agios@latest', when='@master +agios') # Prometheus CPP depends_on('prometheus-cpp', when='@0.9:,latest +prometheus') def cmake_args(self): """Set up GekkoFS CMake arguments""" Loading @@ -76,7 +78,7 @@ to I/O, which reduces interferences and improves performance.""" self.define_from_variant('GKFS_ENABLE_FORWARDING', 'forwarding'), self.define_from_variant('GKFS_ENABLE_AGIOS', 'agios'), self.define_from_variant('GKFS_USE_GUIDED_DISTRIBUTION', 'guided_distributor'), # self.define_from_variant('GKFS_ENABLE_PROMETHEUS', 'prometheus'), self.define_from_variant('GKFS_ENABLE_PROMETHEUS', 'prometheus'), ] return args Loading
scripts/spack/packages/prometheus-cpp/package.py 0 → 100644 +41 −0 Original line number Diff line number Diff line # 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) # ---------------------------------------------------------------------------- # If you submit this package back to Spack as a pull request, # please first remove this boilerplate and all FIXME comments. # # This is a template package file for Spack. We've put "FIXME" # next to all the things you'll want to change. Once you've handled # them, you can save this file and test your package like this: # # spack install prometheus-cpp # # You can edit this file again by typing: # # spack edit prometheus-cpp # # See the Spack documentation for more information on packaging. # ---------------------------------------------------------------------------- from spack.package import * class PrometheusCpp(CMakePackage): """Prometheus CPP bindings.""" # FIXME: Add a proper url for your package's homepage here. homepage = "https://gitgub.com/jupp0r/prometheus-cpp" url = "https://github.com/jupp0r/prometheus-cpp/releases/download/v1.0.0/prometheus-cpp-with-submodules.tar.gz" # FIXME: Add a list of GitHub accounts to # notify when the package is updated. # maintainers("github_user1", "github_user2") version("1.0.0", sha256="593ea4e2b6f4ecf9bd73136e35f5ec66a69249f8cbbb90963e9e04517fb471c0") # FIXME: Add dependencies if required. # depends_on("foo")