forked from geopm/geopm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeopm.spec.in
219 lines (196 loc) · 7.78 KB
/
geopm.spec.in
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# * Neither the name of Intel Corporation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY LOG OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Summary: Global Extensible Open Power Manager
Name: geopm
Version: @VERSION@
Release: 1
License: BSD-3-Clause
Group: System Environment/Libraries
Vendor: Intel Corporation
URL: http://geopm.github.io
Source0: geopm.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++
BuildRequires: python
BuildRequires: openmpi-devel
BuildRequires: hwloc-devel
BuildRequires: unzip
BuildRequires: libtool
%if 0%{?suse_version} >= 1320
BuildRequires: openssh
%endif
BuildRequires: python-devel
Prefix: %{_prefix}
%if %{defined suse_version}
%define docdir %{_defaultdocdir}/geopm
%else
%define docdir %{_defaultdocdir}/geopm-%{version}
%endif
%description
Global Extensible Open Power Manager (GEOPM) is an extensible power
management framework targeting high performance computing. The library can be
extended to support new control algorithms and new hardware power management
features. The GEOPM package provides built in features ranging from static
management of power policy for each individual compute node, to dynamic
coordination of power policy and performance across all of the compute nodes
hosting one MPI job on a portion of a distributed computing system. The
dynamic coordination is implemented as a hierarchical control system for
scalable communication and decentralized control. The hierarchical control
system can optimize for various objective functions including maximizing
global application performance within a power bound. The root of the control
hierarchy tree can communicate through shared memory with the system resource
management daemon to extend the hierarchy above the individual MPI job level
and enable management of system power resources for multiple MPI jobs and
multiple users by the system resource manager. The geopm package provides the
libgeopm library, the libgeopmpolicy library, the geopmctl application and the
geopmpolicy application. The libgeopm library can be called within MPI
applications to enable application feedback for informing the control
decisions. If modification of the target application is not desired then the
geopmctl application can be run concurrently with the target application. In
this case, target application feedback is inferred by querying the hardware
through Model Specific Registers (MSRs). With either method (libgeopm or
geopmctl), the control hierarchy tree writes processor power policy through
MSRs to enact policy decisions. The libgeopmpolicy library is used by a
resource manager to set energy policy control parameters for MPI jobs. Some
features of libgeopmpolicy are available through the geopmpolicy application
including support for static control.
%prep
%setup
%package devel
Summary: Global Extensible Open Power Manager - development
Group: Development/Libraries
Requires: geopm
%description devel
Development package for GEOPM.
%package -n python-geopmpy
Summary: Global Extensible Open Power Manager - python
Group: System Environment/Libraries
Requires: geopm
%{?python_provide:%python_provide python-geopmpy}
%description -n python-geopmpy
Python package for GEOPM.
%build
test -f configure || ./autogen.sh
%if %{defined suse_version}
./configure --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libexecdir} \
--includedir=%{_includedir} --sbindir=%{_sbindir} \
--mandir=%{_mandir} --docdir=%{docdir} \
--with-mpi-bin=%{_libdir}/mpi/gcc/openmpi/bin \
--disable-fortran --disable-doc \
|| ( cat config.log && false )
%else
./configure --prefix=%{_prefix} --libdir=%{_libdir} --libexecdir=%{_libexecdir} \
--includedir=%{_includedir} --sbindir=%{_sbindir} \
--mandir=%{_mandir} --docdir=%{docdir} \
--with-mpi-bin=%{_libdir}/openmpi/bin \
--disable-fortran --disable-doc \
|| ( cat config.log && false )
%endif
%{__make}
%check
%if %{defined suse_version}
LD_LIBRARY_PATH=/usr/lib64/mpi/gcc/openmpi/lib \
MPIEXEC=/usr/lib64/mpi/gcc/openmpi/bin/mpiexec %{__make} check || \
( cat test/gtest_links/*.log && cat scripts/test/pytest_links/*.log && false )
%else
LD_LIBRARY_PATH=/usr/lib64/openmpi/lib \
MPIEXEC=/usr/lib64/openmpi/bin/mpiexec %{__make} check || \
( cat test/gtest_links/*.log && cat scripts/test/pytest_links/*.log && false )
%endif
%install
%{__make} DESTDIR=%{buildroot} install
rm -f $(find %{buildroot}/%{_libdir} -name '*.a'; \
find %{buildroot}/%{_libdir} -name '*.la')
rm -f %{buildroot}/%{_mandir}/man1/geopmpy_launcher.1*
%clean
%post
/sbin/ldconfig
%preun
%postun
/sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libgeopmpolicy.so.0.0.0
%{_libdir}/libgeopmpolicy.so.0
%{_libdir}/libgeopmpolicy.so
%{_libdir}/libgeopm.so.0.0.0
%{_libdir}/libgeopm.so.0
%{_libdir}/libgeopm.so
%dir %{_libdir}/geopm
%{_libdir}/geopm/libgeopmpi_governing.so.0.0.0
%{_libdir}/geopm/libgeopmpi_governing.so.0
%{_libdir}/geopm/libgeopmpi_governing.so
%{_libdir}/geopm/libgeopmpi_balancing.so.0.0.0
%{_libdir}/geopm/libgeopmpi_balancing.so.0
%{_libdir}/geopm/libgeopmpi_balancing.so
%{_libdir}/geopm/libgeopmpi_efficientfreq.so.0.0.0
%{_libdir}/geopm/libgeopmpi_efficientfreq.so.0
%{_libdir}/geopm/libgeopmpi_efficientfreq.so
%{_bindir}/geopmbench
%{_bindir}/geopmctl
%{_bindir}/geopmpolicy
%dir %{docdir}
%doc %{docdir}/README
%doc %{docdir}/COPYING
%doc %{docdir}/VERSION
%doc %{_mandir}/man1/geopmbench.1.gz
%doc %{_mandir}/man1/geopmctl.1.gz
%doc %{_mandir}/man1/geopmpolicy.1.gz
%doc %{_mandir}/man3/geopm_ctl_c.3.gz
%doc %{_mandir}/man3/geopm_error.3.gz
%doc %{_mandir}/man3/geopm_fortran.3.gz
%doc %{_mandir}/man3/geopm_policy_c.3.gz
%doc %{_mandir}/man3/geopm_prof_c.3.gz
%doc %{_mandir}/man3/geopm_sched.3.gz
%doc %{_mandir}/man3/geopm_version.3.gz
%doc %{_mandir}/man7/geopm.7.gz
%files devel
%defattr(-,root,root,-)
%{_includedir}/geopm.h
%{_includedir}/geopm_ctl.h
%{_includedir}/geopm_error.h
%{_includedir}/geopm_policy.h
%{_includedir}/geopm_message.h
%{_includedir}/geopm_version.h
%{_includedir}/geopm_plugin.h
%files -n python-geopmpy
%{python_sitelib}/*
%{_bindir}/geopmanalysis
%{_bindir}/geopmaprun
%{_bindir}/geopmplotter
%{_bindir}/geopmsrun
%doc %{_mandir}/man1/geopmanalysis.1.gz
%doc %{_mandir}/man1/geopmaprun.1.gz
%doc %{_mandir}/man1/geopmplotter.1.gz
%doc %{_mandir}/man1/geopmsrun.1.gz
%doc %{_mandir}/man7/geopmpy.7.gz
%changelog
@CHANGELOG@