From dc9f280beec91143bad2ca3337a5611068b492d0 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Mar 04 2020 20:02:11 +0000 Subject: Rebase to official papi-6.0.0. --- diff --git a/.gitignore b/.gitignore index 516f5c3..a8464ed 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ papi-4.1.0.tar.gz /papi-5.5.1.tar.gz /papi-5.6.0.tar.gz /papi-5.7.0.tar.gz +/papi-6.0.0.tar.gz diff --git a/papi-python3.patch b/papi-python3.patch new file mode 100644 index 0000000..c5e7509 --- /dev/null +++ b/papi-python3.patch @@ -0,0 +1,10 @@ +diff --git a/src/high-level/scripts/papi_hl_output_writer.py b/src/high-level/scripts/papi_hl_output_writer.py +index 123d2cd0..34bfbd73 100755 +--- a/src/high-level/scripts/papi_hl_output_writer.py ++++ b/src/high-level/scripts/papi_hl_output_writer.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + from __future__ import division + from collections import OrderedDict + diff --git a/papi.spec b/papi.spec index c19e3d8..f642565 100644 --- a/papi.spec +++ b/papi.spec @@ -5,14 +5,16 @@ %else %{!?with_rdma: %global with_rdma 1} %endif +%{!?with_pcp: %global with_pcp 1} Summary: Performance Application Programming Interface Name: papi -Version: 5.7.0 -Release: 4%{?dist} +Version: 6.0.0 +Release: 1%{?dist} License: BSD Requires: papi-libs = %{version}-%{release} URL: http://icl.cs.utk.edu/papi/ Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz +Patch1: papi-python3.patch BuildRequires: autoconf BuildRequires: doxygen BuildRequires: ncurses-devel @@ -31,6 +33,9 @@ BuildRequires: net-tools BuildRequires: rdma-core-devel BuildRequires: infiniband-diags-devel %endif +%if %{with_pcp} +BuildRequires: pcp-libs-devel +%endif BuildRequires: perl-generators #Right now libpfm does not know anything about s390 and will fail ExcludeArch: s390 s390x @@ -72,6 +77,7 @@ the PAPI user-space libraries and interfaces. %prep %setup -q +%patch1 -p1 -b .python3 %build %if %{without bundled_libpfm} @@ -79,29 +85,30 @@ the PAPI user-space libraries and interfaces. %global libpfm_config --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir} %endif +# set up environment variable for the various components +# cuda +# host_micpower +%if %{with_rdma} + export PAPI_INFINIBAND_UMAD_ROOT=/usr +%endif +# lmsensors +export PAPI_LMSENSORS_ROOT=/usr +#pushd vmware; ./configure; popd +%if %{with_pcp} +%global pcp_enable pcp +export PAPI_PCP_ROOT=/usr +%endif + cd src autoconf %configure --with-perf-events \ %{?libpfm_config} \ --with-static-lib=yes --with-shared-lib=yes --with-shlib --with-shlib-tools \ ---with-components="appio coretemp example infiniband lmsensors lustre micpower mx net rapl stealtime" +--with-components="appio coretemp example infiniband lmsensors lustre micpower mx net %{?pcp_enable} rapl sde stealtime" # implicit enabled components: perf_event perf_event_uncore #components currently left out because of build configure/build issues # --with-components="bgpm coretemp_freebsd cuda host_micpower nvml vmware" -pushd components -#pushd cuda; ./configure; popd -#pushd host_micpower; ./configure; popd -%if %{with_rdma} -pushd infiniband_umad; %configure; popd -%endif -pushd lmsensors; \ - %configure --with-sensors_incdir=/usr/include/sensors \ - --with-sensors_libdir=%{_libdir}; \ - popd -#pushd vmware; ./configure; popd -popd - #DBG workaround to make sure libpfm just uses the normal CFLAGS DBG="" make %{?_smp_mflags} @@ -123,14 +130,14 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* %{_bindir}/* %dir /usr/share/papi /usr/share/papi/papi_events.csv -%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt +%doc INSTALL.txt README.md LICENSE.txt RELEASENOTES.txt %doc %{_mandir}/man1/* %ldconfig_scriptlets libs %files libs %{_libdir}/*.so.* -%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt +%doc INSTALL.txt README.md LICENSE.txt RELEASENOTES.txt %files devel %{_includedir}/*.h @@ -153,6 +160,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* %{_libdir}/*.a %changelog +* Wed Mar 04 2020 William Cohen - 6.0.0-1 +- Rebase to official papi-6.0.0. + * Wed Jan 29 2020 Fedora Release Engineering - 5.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index e30bb4f..d4ca8d6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (papi-5.7.0.tar.gz) = 9adc1296321c4ec058bba7f3fc1f1b25058c83bba8168f6e9c1073999b12dad3041cce7ca04cf860572868c519de01d688a556024d007b22d64534dc242b9127 +SHA512 (papi-6.0.0.tar.gz) = 2a4a245d64c3ac05ca9664194ac406cfb360fc0935afdee115ca0fc3f24b6051d1130426ed959fac2f711a2239100b37a4dfe8e0885697f4f4c049554c95258a