
* geopm: Added initial files for package geopm and py-natsort dependency * geopm: Updated variants for hwloc and mpi defaults * geopm: Cleaned up unwanted hyphenation in description. * geopm: updates according to change request. * geopm: Updated minor change requests. Clarification for ruby-ronn dependency included as a TODO. This requires changes in the current configure and build process which will be changed in a future version. * geopm: changed to AutotoolsPackage and fixed hwloc The changes for hwloc required to add a specific version bc of a conflicting version of openmpi's hwloc dependency being below 1.99. This works but updates to this package should check if this restriction is still required. (Thus TODO added) * geopm: Added link dependencies (thanks for pointing this out). Also removed empty line below class definition. * geopm: Fixed depends_on according to package guide. Removed wrong type 'run' and removed types for numactl, mpi and hwloc to use default build & link type. * geopm: Fixed and updated +doc dependencies new pacakge ruby-ronn (package specified as in ruby-narray package) Updated second +doc dependency doxygen. * geopm: Changed args for Autotools specific feature. Added enable_or_disable and with_or_without instead of if cascade. Added overhead variant. Also added missing dependency (default: build&link) for json-c).
95 lines
4.6 KiB
Python
95 lines
4.6 KiB
Python
##############################################################################
|
|
# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
#
|
|
# This file is part of Spack.
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
|
# LLNL-CODE-647188
|
|
#
|
|
# For details, see https://github.com/spack/spack
|
|
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
|
# conditions of the GNU Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
##############################################################################
|
|
from spack import *
|
|
|
|
|
|
class Geopm(AutotoolsPackage):
|
|
"""GEOPM is an extensible power management framework targeting HPC.
|
|
The GEOPM package provides libgeopm, libgeopmpolicy and applications
|
|
geopmctl and geopmpolicy, as well as tools for postprocessing.
|
|
GEOPM is designed to be extended for new control algorithms and new
|
|
hardware power management features via its plugin infrastructure.
|
|
|
|
Note: GEOPM interfaces with hardware using Model Specific Registers (MSRs).
|
|
For propper usage make sure MSRs are made available directly or via the
|
|
msr-safe kernel module by your administrator."""
|
|
|
|
homepage = "https://geopm.github.io"
|
|
url = "https://github.com/geopm/geopm/releases/download/v0.4.0/geopm-0.4.0.tar.gz"
|
|
|
|
# Add additional proper versions and checksums here. "spack checksum geopm"
|
|
version('0.4.0', 'd4cc8fffe521296dab379857d7e2064d')
|
|
version('0.3.0', '568fd37234396fff134f8d57b60f2b83')
|
|
version('master', git='https://github.com/geopm/geopm.git', branch='master')
|
|
version('develop', git='https://github.com/geopm/geopm.git', branch='dev')
|
|
|
|
# Variants reflecting most ./configure --help options
|
|
variant('debug', default=False, description='Enable debug.')
|
|
variant('coverage', default=False, description='Enable test coverage support, enables debug by default.')
|
|
variant('overhead', default=False, description='Enable GEOPM to calculate and display time spent in GEOPM API calls.')
|
|
variant('procfs', default=True, description='Enable procfs (disable for OSes not using procfs).')
|
|
variant('mpi', default=True, description='Enable MPI dependent components.')
|
|
variant('fortran', default=True, description='Build fortran interface.')
|
|
variant('doc', default=True, description='Create man pages with ruby-ronn.')
|
|
variant('openmp', default=True, description='Build with OpenMP.')
|
|
variant('ompt', default=False, description='Use OpenMP Tools Interface.')
|
|
variant('hwloc', default=True, description='Build with hwloc.')
|
|
variant('gnu-ld', default=False, description='Assume C compiler uses gnu-ld.')
|
|
|
|
# Added dependencies.
|
|
depends_on('m4', type='build')
|
|
depends_on('automake', type='build')
|
|
depends_on('autoconf', type='build')
|
|
depends_on('libtool', type='build')
|
|
depends_on('ruby-ronn', type='build', when='+doc')
|
|
depends_on('doxygen', type='build', when='+doc')
|
|
depends_on('numactl')
|
|
depends_on('mpi', when='+mpi')
|
|
# TODO: check if hwloc@specific-version still required with future openmpi
|
|
depends_on('hwloc@1.11.9', when='+hwloc')
|
|
depends_on('json-c')
|
|
depends_on('py-pandas', type='run')
|
|
depends_on('py-numpy', type='run')
|
|
depends_on('py-natsort', type='run')
|
|
depends_on('py-matplotlib', type='run')
|
|
|
|
parallel = False
|
|
|
|
def configure_args(self):
|
|
args = []
|
|
args.extend(self.enable_or_disable('debug'))
|
|
args.extend(self.enable_or_disable('coverage'))
|
|
args.extend(self.enable_or_disable('overhead'))
|
|
args.extend(self.enable_or_disable('procfs'))
|
|
args.extend(self.enable_or_disable('mpi'))
|
|
args.extend(self.enable_or_disable('fortran'))
|
|
args.extend(self.enable_or_disable('doc'))
|
|
args.extend(self.enable_or_disable('openmp'))
|
|
args.extend(self.enable_or_disable('ompt'))
|
|
args.extend(self.with_or_without('hwloc', activation_value='prefix'))
|
|
args.extend(self.with_or_without('gnu-ld'))
|
|
|
|
return args
|