Compare commits

..

79 Commits

Author SHA1 Message Date
William Cohen
c033ad4d7c Dynamically link utilities and tests to papi libraries. 2018-05-17 15:52:28 -04:00
William Cohen
0d368b884a Resolve: rhbz#1573096 2018-04-30 14:11:10 -04:00
Igor Gnatenko
4139b24f09
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 08:28:21 +01:00
Igor Gnatenko
f96f6dbb4c Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-13 23:59:30 +01:00
Fedora Release Engineering
dba3783cc5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-08 18:17:15 +00:00
William Cohen
b25844b844 Bump and rebuild for libgfortran.so.5 dependency. 2018-01-31 08:29:35 -05:00
William Cohen
e7b7e927c3 Fix the infiniband build requires. 2017-12-21 19:06:51 -05:00
William Cohen
3e94b266fa Rebase to papi-5.6.0.tar.gz 2017-12-21 18:20:13 -05:00
Honggang LI
db9186f7bd Disable RDMA support on ARM32 2017-08-28 08:19:08 +02:00
Fedora Release Engineering
319c849ab1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 04:50:06 +00:00
Fedora Release Engineering
5aa2d3bc6f - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 02:10:30 +00:00
Fedora Release Engineering
3b9504b771 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 01:15:20 +00:00
William Cohen
a3639f1529 Bump version and rebuild due to new libgfortan.so version. 2017-02-02 14:20:41 -05:00
William Cohen
b20ce17773 Rebase to papi-5.5.1. 2016-11-18 16:54:06 -05:00
William Cohen
5892c9cec0 Rebase to papi-5.5.0. 2016-09-14 16:46:12 -04:00
Petr Písař
a721c87573 Mandatory Perl build-requires added <https://fedoraproject.org/wiki/Changes/Build_Root_Without_Perl> 2016-06-24 10:23:14 +02:00
Fedora Release Engineering
80a7c97f88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-04 11:54:31 +00:00
William Cohen
e23f0966d4 Rebase to papi-5.4.3.tar.gz. 2016-01-26 14:01:27 -05:00
Dennis Gilmore
2bd6b62334 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-18 00:42:22 +00:00
William Cohen
58118ff86b Make sure using libpfm-4.6.0 2015-03-06 15:13:28 -05:00
William Cohen
e629484516 Update to papi-5.4.1. 2015-03-03 10:03:51 -05:00
William Cohen
e2bab70414 Bump version and rebuild. 2015-02-11 15:38:02 -05:00
William Cohen
b6f8c88881 Split out papi-libs as separate subpackage. (#1172875) 2014-12-18 16:41:38 -05:00
William Cohen
5f4cc375a9 Rebase on papi-5.4.0. 2014-11-17 10:21:38 -05:00
Peter Robinson
71699d20b8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-17 14:48:15 +00:00
William Cohen
ad4ba63adf Rebase to papi-5.3.2 (rhbz1126169) 2014-08-04 12:10:30 -04:00
William Cohen
23b698c7c0 Rebase to papi-5.3.2 (rhbz1126169) 2014-08-04 12:06:31 -04:00
Dennis Gilmore
9f36bd9173 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 18:38:20 -05:00
Lukas Berk
bf4873bcc5 Automated weekly papi rawhide release: 1.16.ga7f6159 2014-01-17 12:02:26 -05:00
William Cohen
3633ee4d50 Import papi-5.3.0 2014-01-16 09:15:57 -05:00
Lukas Berk
94262130cf Revert back to papi 5.2 release 2013-11-28 10:55:30 -05:00
Lukas Berk
018768e1fa Automated weekly papi rawhide release: 2.1.gff3e15d 2013-11-25 08:46:10 -05:00
Lukas Berk
a345072c66 Automated weekly papi rawhide release: 2.63.g91a6fa5 2013-11-18 11:12:01 -05:00
Lukas Berk
60d117981d Automated weekly papi rawhide release: 2.37.g5c1405a 2013-11-04 15:04:43 -05:00
Lukas Berk
b7467a8d93 Automated weekly papi rawhide release: 2.37.g5c1405a 2013-11-04 10:36:07 -05:00
William Cohen
c09fda2a0f Enable infiniband and stealtime components. 2013-08-15 12:09:30 -04:00
William Cohen
582d467479 Rebase on papi-5.2.0.tar.gz 2013-08-07 15:01:58 -04:00
Dennis Gilmore
1a94b3f853 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 11:30:37 -05:00
William Cohen
70927391a7 resolves rhbz830275 - Add support for POWER8 processor to PAPI 2013-07-24 12:02:00 -04:00
William Cohen
802f1b9f7b Add autoconf buildrequires. 2013-07-22 13:19:52 -04:00
William Cohen
cca5a3d460 resolves rhbz986673 - /usr/lib64/libpapi.so is unowned 2013-07-22 13:08:07 -04:00
William Cohen
c311b21be4 Correct changelog 2013-07-19 16:28:23 -04:00
William Cohen
59076085dc Add doxygen buildreq 2013-07-05 17:27:17 -04:00
William Cohen
6912fdb2e7 Update/correct man pages rhbz949029 2013-07-05 17:15:30 -04:00
William Cohen
376e36fed2 Add testsuite subpackage to the papi package. 2013-06-28 15:56:36 -04:00
William Cohen
3f7b0775ca Rebase to 5.1.1. 2013-05-30 12:32:08 -04:00
William Cohen
d63c37215c Fix arm FTBS rhbz 951806. 2013-04-16 09:00:55 -04:00
William Cohen
d70b965d13 Update source to papi-5.1.0.2. 2013-04-09 10:10:25 -04:00
Dennis Gilmore
fa16f85669 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 03:48:12 -06:00
William Cohen
c0c1ac32cf * Mon Jan 14 2013 William Cohen <wcohen@redhat.com> - 5.0.1-5
- Add armv7 cortex a15 presets.
2013-01-14 10:31:41 -05:00
William Cohen
bdfc4a222d Make sure that ldconfig is not done during the build process
If the libpfm is bundled with papi the ldconfig would be run and it
would cut short the install.  The install needs to run to completion
and install /usr/include/perfmon/*.h files when bundling libpfm4
with papi.
2012-12-04 17:03:22 -05:00
William Cohen
361e069bd9 resolve: rhbz872501 2012-11-08 11:28:43 -05:00
William Cohen
7ad445abe6 Make sure using compatible version of libpfm. 2012-10-03 16:56:32 -04:00
William Cohen
a1bed248a6 Rebase to papi-5.0.1. 2012-09-20 16:16:30 -04:00
William Cohen
3ee29737de Back port fixes for Intel Ivy Bridge event presets. 2012-09-10 11:53:02 -04:00
William Cohen
600459f55c Fixes to make papi with unbundled libpfm. 2012-08-30 11:47:43 -04:00
William Cohen
ddc8fbf177 - Keep libpfm unbundled. 2012-08-27 09:17:11 -04:00
William Cohen
b18801ba5f Rebase to 5.0.0. 2012-08-26 20:30:51 -04:00
Dennis Gilmore
53be6c83d3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-20 03:15:15 -05:00
William Cohen
beb3c79401 Use siginfo_t rather than struct siginfo. 2012-06-11 15:52:18 -04:00
William Cohen
6c3841076d Need the libpfm-static to build the papi-static parts. 2012-06-11 11:19:56 -04:00
William Cohen
a576b22c6a Unbundle libpfm from papi. 2012-06-11 10:56:20 -04:00
William Cohen
d7a1fea46b Rebase on papi-4.4.0.tar.gz. 2012-04-20 12:01:49 -04:00
William Cohen
c98dcf56a8 Fix overrun in lmsensor component. (rhbz797692) 2012-03-09 16:36:44 -05:00
William Cohen
4bb90afdf0 Rebase on papi-4.2.1.tar.gz 2012-02-14 14:55:45 -05:00
Dennis Gilmore
e8abcf2bd5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-13 05:58:45 -06:00
William Cohen
a97ce2074c * Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
- Remove unwanted man1/*.c.1 files. (rhbz749725)
2011-11-02 11:27:04 -04:00
William Cohen
9b2fba4856 * Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
- Include appropirate man pages with papi rpm. (rhbz749725)
- Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
2011-10-31 11:22:38 -04:00
William Cohen
2364b83fca Add papi-4.2.0.tar.gz source file 2011-10-27 09:58:42 -04:00
William Cohen
4efed0a44b Rebase to papi-4.2.0. 2011-10-27 09:57:26 -04:00
William Cohen
6f5afd0861 Add static library for compute node support. 2011-08-12 15:39:37 -04:00
William Cohen
40c308b355 Use corrected papi-4.1.3.tar.gz 2011-05-13 16:51:57 -04:00
William Cohen
dfd9bf4e0b Rebase on papi-4.1.3. 2011-05-12 14:04:54 -04:00
Dennis Gilmore
9e55abb12d - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 08:16:23 -06:00
William Cohen
ed3c8cb578 Rebase papi on papi-4.1.2.1 2011-01-24 17:45:09 -05:00
William Cohen
0096d6810d - Rebase to papi-4.1.1 2010-10-01 15:24:54 -04:00
Fedora Release Engineering
fb78ee023d dist-git conversion 2010-07-29 05:31:36 +00:00
William Eden Cohen
2abfc034db Rebase on papi-4.1.0 2010-06-22 19:01:35 +00:00
William Eden Cohen
57ffd5b402 Remove unused patch file. 2010-03-08 19:59:03 +00:00
9 changed files with 475 additions and 538 deletions

View File

@ -1 +0,0 @@
papi-4.0.0.tar.gz

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
papi-4.1.0.tar.gz
/papi-4.1.1.tar.gz
/papi-4.1.2.1.tar.gz
/papi-4.1.3.tar.gz
/papi-4.2.0.tar.gz
/papi-4.2.1.tar.gz
/papi-4.4.0.tar.gz
/papi-5.0.0.tar.gz
/papi-5.0.1.tar.gz
/papi-5.1.0.2.tar.gz
/papi-5.1.1.tar.gz
/papi-5.2.0.tar.gz
/papi-5.2.0-2.37.g5c1405a.tar.gz
/papi-5.2.0-2.63.g91a6fa5.tar.gz
/papi-5.2.0-2.1.gff3e15d.tar.gz
/papi-5.3.0.tar.gz
/papi-5.3.0-1.16.ga7f6159.tar.gz
/papi-5.3.2.tar.gz
/papi-5.4.0.tar.gz
/papi-5.4.1.tar.gz
/papi-5.4.3.tar.gz
/papi-5.5.0.tar.gz
/papi-5.5.1.tar.gz
/papi-5.6.0.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: papi
# $Id: Makefile,v 1.1 2009/10/26 20:12:06 kevin Exp $
NAME := papi
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1 +0,0 @@
papi-3_7_0-10:HEAD:papi-3.7.0-10.src.rpm:1256589687

View File

@ -1,112 +0,0 @@
diff -up papi-3.7.2/src/configure.in.header papi-3.7.2/src/configure.in
--- papi-3.7.2/src/configure.in.header 2009-12-10 15:05:09.000000000 -0500
+++ papi-3.7.2/src/configure.in 2009-12-10 15:05:13.000000000 -0500
@@ -1013,61 +1013,63 @@ AC_ARG_WITH(pfm_libdir,
)
# PCL start
-# set PCL manually set with --with-pcl,
-# or by default if perfctr and perfmon are not available
-# and linux kernel version is >= 31
-
-if test "$cross_compiling" = "no" -a "$OS" = "linux" -a "`uname -r | grep "2.6."`"; then
-# gives the position in $OSVER of *first* character in substring "2.6."
-POS1=`expr index "$OSVER" "2.6."`
-POS2=`expr $POS1 + 4`
-VERS=`expr substr "$OSVER" "$POS2" 2`
-
-# Version 2.6.31 of the kernel uses perf_counter.h and all subsequent versions use perf_event.h
-if test "$VERS" = "31"; then
- perf_header="perf_counter.h"
- CFLAGS="$CFLAGS -DKERNEL31"
-elif test "$VERS" -gt 31; then
- perf_header="perf_event.h"
+if test "x$perfctr" != "xyes" -a "$perfmon" = "0"; then
+
+# Try to find perf_event.h or perf_counter.h on
+# user specific path or default of /usr/include/linux
+AC_ARG_WITH(pcl_incdir,
+ [ --with-pcl-incdir=<path> Specify path to the correct perf event header file],
+ [
+case "$with_pcl_incdir" in
+yes) AC_MSG_ERROR([--with-pcl-incdir requires an argument]) ;;
+''|no) ;;
+*) pcl_incdir=$with_pcl_incdir ;;
+esac],
+[pcl_incdir="/usr/include/linux"])
+
+# Linux 2.6.32 and newer check
+AC_CHECK_FILE($pcl_incdir/perf_event.h,
+ [pcl="yes" PCLPATH="$pcl_incdir/perf_event.h"])
+
+# Linux 2.6.31 check
+if test "x$PCLPATH" = "x"; then
+AC_CHECK_FILE($pcl_incdir/perf_counter.h,
+ [pcl="yes" PCLPATH="$pcl_incdir/perf_counter.h"
+ CFLAGS="$CFLAGS -DKERNEL31"])
fi
-if test "${VERS}" -ge 31; then
AC_ARG_WITH(pcl,
[ --with-pcl=<yes,no> Specify existence of Performance Counters for Linux],
- [pcl=$withval
- AC_CHECK_FILE(/lib/modules/$OSVER/source/include/linux/$perf_header, [ pcl="yes"
- PCLPATH="/lib/modules/$OSVER/source/include/linux/$perf_header"],
- [ pcl="no" ])
- ],
- [if test "$perfctr" = "no" -a "$perfmon" = "0"; then
- AC_CHECK_FILE(/lib/modules/$OSVER/source/include/linux/$perf_header, [ pcl="yes"
- PCLPATH="/lib/modules/$OSVER/source/include/linux/$perf_header"],
- [ pcl="no" ])
- fi
- ])
-elif test "$perfctr" = "no" -a "$perfmon" = "0"; then
-AC_MSG_ERROR([PAPI requires a patch for any kernel older than 2.6.31])
+ [pcl=$withval])
+
+#fall back check for the perf_event.h or perf_counter.h in -devel for running
+#linux kernel
+if test "x$cross_compiling" != "xyes" -a "$OS" = "linux" -a "x$PCLPATH" = "x"; then
+
+pcl_incdir="/lib/modules/$OSVER/source/include/linux"
+
+# Linux 2.6.32 and newer check
+AC_CHECK_FILE($pcl_incdir/perf_event.h,
+ [pcl="yes" PCLPATH="$pcl_incdir/perf_event.h"])
+
+# Linux 2.6.31 check
+if test "x$PCLPATH" = "x"; then
+AC_CHECK_FILE($pcl_incdir/perf_counter.h,
+ [pcl="yes" PCLPATH="$pcl_incdir/perf_counter.h"
+ CFLAGS="$CFLAGS -DKERNEL31"])
+fi
+
+if test "x$PCLPATH" = "x"; then
+ pcl=no
fi
-# If we are running a PCL kernel, the correct include file should have been found in
-# /lib/modules/$OSVER/source/include/linux. If the file was not found
-# see if the user has set a path and ensure it can be found there
-if test "$pcl" = "no"; then
-AC_ARG_WITH(pcl_incdir,
- [ --with-pcl-incdir=<path> Specify path to the correct perf event header file],
- [pcl_incdir=$withval
- AC_CHECK_FILE($pcl_incdir/$perf_header, [pcl="yes"
- PCLPATH="$pcl_incdir/$perf_header"],
- [AC_MSG_ERROR([$perf_header could not be found at $pcl_incdir])])
- ],
- [if test "$perfctr" = "no" -a "$perfmon" = "0"; then
- AC_MSG_ERROR([$perf_header could not be found and no patch is installed.])
- fi
- ])
fi
fi
# PCL end
+if test "x$pcl" != "xyes" -a "x$perfctr" != "xyes" -a "$perfmon" = "0"; then
+ AC_MSG_ERROR([No performance monitoring interface available])
+fi
AC_ARG_WITH(pmapi,
[ --with-pmapi=<path> Specify path of pmapi on aix system ],

View File

@ -1,372 +0,0 @@
diff -rupN papi400t/src/configure papi400b/src/configure
--- papi400t/src/configure 2010-01-13 11:20:35.000000000 -0500
+++ papi400b/src/configure 2010-01-26 12:53:10.000000000 -0500
@@ -2113,7 +2113,6 @@ case "$OS" in
made=GenuineIntel
family="`cat /proc/cpuinfo | grep family | cut -d: -f2 | cut -d' ' -f2 | sed '2,$d'`"
model="`cat /proc/cpuinfo | grep model | cut -d: -f2 | cut -d' ' -f2 | sed '2,$d'`"
- # family 15 is always P4; model 1 is vanilla pre-HT, model 2 is vanilla; model 3 is em64t, 4 is Pentium D, 6 is Xeon D
if test "$family" = "6"; then
# model 14 is an ancient Core
if test "$model" = "14"; then
@@ -2135,14 +2134,10 @@ case "$OS" in
CPU=atom
use_x86_cache_info=yes
fi
+ # family 15 is always P4
elif test "$family" = "15"; then
- if (test "$model" = "3" || test "$model" = "4" || test "$model" = "6"); then
- CPU=em64t
- use_x86_cache_info=yes
- elif (test "$model" = "1" || test "$model" = "2"); then
CPU=p4
use_x86_cache_info=yes
- fi
elif test "$family" = "32"; then
CPU=montecito
elif test "$family" = "31"; then
@@ -2157,7 +2152,8 @@ case "$OS" in
elif test "`cat /proc/cpuinfo | grep -i "Pentium III"`" != ""; then
CPU=p3
use_x86_cache_info=yes
- else CPU=p3
+ else
+ CPU=p3
use_x86_cache_info=yes
fi
fi
@@ -9033,7 +9029,7 @@ $as_echo "$as_me: error: The bitmode you
else
MAKEVER="$OS"-pfm-"$CPU"
fi ;;
- opteron|core|core2|i7|atom|em64t|p3)
+ opteron|core|core2|i7|atom|p3)
if test "$arch" = "x86_64"; then
MAKEVER="$OS"-perfctr-p3
else
@@ -9099,7 +9095,6 @@ case "$MAKEVER" in
linux-perfctr-athlon);;
linux-perfctr-p3);;
linux-perfctr-p4);;
- linux-perfctr-em64t);;
solaris-ultra);;
solaris-ultra-64bit);;
solaris-niagara2|solaris-niagara2-32bit);;
diff -rupN papi400t/src/configure.in papi400b/src/configure.in
--- papi400t/src/configure.in 2010-01-13 11:03:58.000000000 -0500
+++ papi400b/src/configure.in 2010-01-26 12:53:10.000000000 -0500
@@ -1,7 +1,7 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# File: configure.in
-# CVS: $Id: configure.in,v 1.166 2010/01/13 16:03:58 sbk Exp $
+# CVS: $Id: configure.in,v 1.166.2.1 2010/01/26 17:53:10 bsheely Exp $
AC_PREREQ(2.61)
@@ -199,7 +199,6 @@ case "$OS" in
made=GenuineIntel
family="`cat /proc/cpuinfo | grep family | cut -d: -f2 | cut -d' ' -f2 | sed '2,$d'`"
model="`cat /proc/cpuinfo | grep model | cut -d: -f2 | cut -d' ' -f2 | sed '2,$d'`"
- # family 15 is always P4; model 1 is vanilla pre-HT, model 2 is vanilla; model 3 is em64t, 4 is Pentium D, 6 is Xeon D
if test "$family" = "6"; then
# model 14 is an ancient Core
if test "$model" = "14"; then
@@ -221,14 +220,10 @@ case "$OS" in
CPU=atom
use_x86_cache_info=yes
fi
+ # family 15 is always P4
elif test "$family" = "15"; then
- if (test "$model" = "3" || test "$model" = "4" || test "$model" = "6"); then
- CPU=em64t
- use_x86_cache_info=yes
- elif (test "$model" = "1" || test "$model" = "2"); then
CPU=p4
use_x86_cache_info=yes
- fi
elif test "$family" = "32"; then
CPU=montecito
elif test "$family" = "31"; then
@@ -243,7 +238,8 @@ case "$OS" in
elif test "`cat /proc/cpuinfo | grep -i "Pentium III"`" != ""; then
CPU=p3
use_x86_cache_info=yes
- else CPU=p3
+ else
+ CPU=p3
use_x86_cache_info=yes
fi
fi
@@ -1441,7 +1437,7 @@ case "$OS" in
else
MAKEVER="$OS"-pfm-"$CPU"
fi ;;
- opteron|core|core2|i7|atom|em64t|p3)
+ opteron|core|core2|i7|atom|p3)
if test "$arch" = "x86_64"; then
MAKEVER="$OS"-perfctr-p3
else
@@ -1500,7 +1496,6 @@ case "$MAKEVER" in
linux-perfctr-athlon);;
linux-perfctr-p3);;
linux-perfctr-p4);;
- linux-perfctr-em64t);;
solaris-ultra);;
solaris-ultra-64bit);;
solaris-niagara2|solaris-niagara2-32bit);;
diff -rupN papi400t/src/ctests/shlib.c papi400b/src/ctests/shlib.c
--- papi400t/src/ctests/shlib.c 2009-09-10 16:19:49.000000000 -0400
+++ papi400b/src/ctests/shlib.c 2010-01-26 19:27:26.000000000 -0500
@@ -1,6 +1,6 @@
/*
* File: profile.c
-* CVS: $Id: shlib.c,v 1.18 2009/09/10 20:19:49 terpstra Exp $
+* CVS: $Id: shlib.c,v 1.18.6.2 2010/01/27 00:27:26 jagode Exp $
* Author: Philip Mucci
* mucci@cs.utk.edu
* Mods: <your name here>
@@ -59,50 +59,26 @@ int main(int argc, char **argv)
#ifndef NO_DLFCN
{
- char *libname =
- "libpapi.so";
- char *libname2 =
- "libpapi64.so";
- char *_libname;
+ char *_libname =
+ "libm.so";
void *handle ;
-/*
- void *handle = dlopen("libm.so", RTLD_LAZY);
-*/
- int (*num_hwctrs)(void);
+ double (*pow)(double,double);
int oldcount;
- int my_dlerror = 0;
-
-RETRY:
- if ( !my_dlerror ){
- printf("\nLoading %s with dlopen().\n",libname);
- _libname = libname;
- }
- else{
- printf("\nLoading %s with dlopen().\n",libname2);
- _libname = libname2;
- }
handle = dlopen (_libname, RTLD_NOW);
if (!handle) {
printf("dlopen: %s\n",dlerror());
- if ( !my_dlerror ){
- my_dlerror = 1;
- printf("Trying again.");
- goto RETRY;
- }
printf("Did you forget to set the environmental variable LIBPATH (in AIX) or LD_LIBRARY_PATH (in linux) ?\n");
test_fail(__FILE__, __LINE__, "dlopen", 1);
}
- printf("Looking up PAPI_num_counters() \n");
- num_hwctrs = ( int (*) (void)) dlsym(handle, "PAPI_num_counters");
- if (num_hwctrs == NULL) {
- printf("dlsym: %s \n", dlerror());
- test_fail(__FILE__, __LINE__, "dlsym", 1);
- }
-
- printf ("There are %d hardware counters \n", (*num_hwctrs)());
-
+ pow = (double(*)(double,double)) dlsym(handle, "pow");
+ if (pow == NULL) {
+ printf("dlsym: %s\n", dlerror());
+ test_fail(__FILE__,__LINE__,"dlsym",1);
+ }
+ printf("2^2 = %lf \n",(*pow)(2,2));
+
oldcount = shinfo->count;
if ((shinfo = PAPI_get_shared_lib_info()) == NULL) {
diff -rupN papi400t/src/extras.c papi400b/src/extras.c
--- papi400t/src/extras.c 2009-12-18 15:24:24.000000000 -0500
+++ papi400b/src/extras.c 2010-01-27 17:26:42.000000000 -0500
@@ -4,7 +4,7 @@
/*
* File: extras.c
-* CVS: $Id: extras.c,v 1.159 2009/12/18 20:24:24 terpstra Exp $
+* CVS: $Id: extras.c,v 1.159.2.2 2010/01/27 22:26:42 jagode Exp $
* Author: Philip Mucci
* mucci@cs.utk.edu
* Mods: dan terpstra
@@ -562,34 +562,50 @@ int _papi_hwi_native_name_to_code(char *
char name[PAPI_HUGE_STR_LEN]; /* make sure it's big enough */
unsigned int i, j;
- for (j=0,i = 0 | PAPI_NATIVE_MASK;j<papi_num_components; j++,i = 0 | PAPI_NATIVE_MASK) {
+
+ for ( j = 0, i = 0 | PAPI_NATIVE_MASK; j<papi_num_components; j++, i = 0 | PAPI_NATIVE_MASK )
+ {
/* first check each component for name_to_code */
- if (vector_find_dummy( (void*) _papi_hwd[j]->ntv_name_to_code, NULL) == NULL)
- retval = _papi_hwd[j]->ntv_name_to_code(in, (unsigned *)out);
- else {
- _papi_hwd[j]->ntv_enum_events(&i, PAPI_ENUM_FIRST);
- _papi_hwi_lock(INTERNAL_LOCK);
- do {
+ if ( vector_find_dummy( ( void* ) _papi_hwd[j]->ntv_name_to_code, NULL ) == NULL )
+ {
+ /* if ntv_name_to_code is set and != NULL */
+ retval = _papi_hwd[j]->ntv_name_to_code( in, ( unsigned * ) out );
+ }
+ else
+ {
+ _papi_hwd[j]->ntv_enum_events( &i, PAPI_ENUM_FIRST );
+ _papi_hwi_lock( INTERNAL_LOCK );
+
+ do
+ {
retval = _papi_hwd[j]->ntv_code_to_name(i, name, sizeof(name));
/* printf("name =|%s|\ninput=|%s|\n", name, in); */
- if (retval == PAPI_OK) {
- if (strcasecmp(name, in) == 0) {
+ if (retval == PAPI_OK)
+ {
+ if (strcasecmp(name, in) == 0)
+ {
*out = i | PAPI_COMPONENT_MASK(j);;
break;
- } else {
+ }
+ else
retval = PAPI_ENOEVNT;
- }
- } else {
+ }
+ else
+ {
*out = 0;
retval = PAPI_ENOEVNT;
break;
}
- } while ((_papi_hwd[j]->ntv_enum_events(&i, PAPI_ENUM_EVENTS) == PAPI_OK));
+ }
+ while ( ( _papi_hwd[j]->ntv_enum_events( &i, PAPI_ENUM_EVENTS ) == PAPI_OK ) );
+
_papi_hwi_unlock(INTERNAL_LOCK);
- if (retval == PAPI_OK) return(retval);
}
+
+ if ( retval == PAPI_OK )
+ return( retval );
}
- return (retval);
+ return ( retval );
}
diff -rupN papi400t/src/papi.c papi400b/src/papi.c
--- papi400t/src/papi.c 2009-12-18 15:24:24.000000000 -0500
+++ papi400b/src/papi.c 2010-01-26 20:40:35.000000000 -0500
@@ -4,7 +4,7 @@
/*
* File: papi.c
-* CVS: $Id: papi.c,v 1.337 2009/12/18 20:24:24 terpstra Exp $
+* CVS: $Id: papi.c,v 1.337.2.1 2010/01/27 01:40:35 terpstra Exp $
* Author: Philip Mucci
* mucci@cs.utk.edu
* Mods: dan terpstra
@@ -1349,13 +1349,10 @@ int PAPI_set_multiplex(int EventSet)
if (ESI == NULL)
papi_return(PAPI_ENOEVST);
- /* if the eventset has no index and no events, return OK
- otherwise return NOCMP */
+ /* if the eventset has no index return NOCMP */
cidx = valid_ESI_component(ESI);
- if (cidx < 0) {
- if (ESI->NumberOfEvents) papi_return(cidx);
- papi_return(PAPI_OK);
- }
+ if (cidx < 0) papi_return(cidx);
+
if ((ret = mpx_check(EventSet)) != PAPI_OK)
papi_return(ret);
diff -rupN papi400t/src/perf_events.c papi400b/src/perf_events.c
--- papi400t/src/perf_events.c 2010-01-14 10:48:00.000000000 -0500
+++ papi400b/src/perf_events.c 2010-01-27 17:26:42.000000000 -0500
@@ -1,6 +1,6 @@
/*
* File: perf_events.c
-* CVS: $Id: perf_events.c,v 1.18 2010/01/14 15:48:00 terpstra Exp $
+* CVS: $Id: perf_events.c,v 1.18.2.1 2010/01/27 22:26:42 jagode Exp $
* Author: Corey Ashford
* cjashfor@us.ibm.com
* - based upon perfmon.c written by -
@@ -76,6 +76,7 @@ extern papi_vector_t _papi_pe_vector;
extern int _papi_pfm_setup_presets(char *name, int type);
extern int _papi_pfm_ntv_enum_events(unsigned int *EventCode, int modifier);
+extern int _papi_pfm_ntv_name_to_code(char *ntv_name, unsigned int *EventCode);
extern int _papi_pfm_ntv_code_to_name(unsigned int EventCode, char *ntv_name, int len);
extern int _papi_pfm_ntv_code_to_descr(unsigned int EventCode, char *ntv_descr, int len);
extern int _papi_pfm_ntv_code_to_bits(unsigned int EventCode, hwd_register_t *bits);
@@ -2014,8 +2015,8 @@ int _papi_pe_init_substrate (int cidx)
}
SUBDBG ("pfm_get_num_events: %d\n", ncnt);
MY_VECTOR.cmp_info.num_native_events = ncnt;
- strcpy (MY_VECTOR.cmp_info.name, "$Id: perf_events.c,v 1.18 2010/01/14 15:48:00 terpstra Exp $");
- strcpy (MY_VECTOR.cmp_info.version, "$Revision: 1.18 $");
+ strcpy (MY_VECTOR.cmp_info.name, "$Id: perf_events.c,v 1.18.2.1 2010/01/27 22:26:42 jagode Exp $");
+ strcpy (MY_VECTOR.cmp_info.version, "$Revision: 1.18.2.1 $");
sprintf (buf, "%08x", version);
pfm_get_num_counters ((unsigned int *) &MY_VECTOR.cmp_info.num_cntrs);
@@ -3383,6 +3384,7 @@ papi_vector_t _papi_pe_vector = {
.allocate_registers = _papi_pe_allocate_registers,
.write = _papi_pe_write,
.ntv_enum_events = _papi_pfm_ntv_enum_events,
+ .ntv_name_to_code = _papi_pfm_ntv_name_to_code,
.ntv_code_to_name = _papi_pfm_ntv_code_to_name,
.ntv_code_to_descr = _papi_pfm_ntv_code_to_descr,
.ntv_code_to_bits = _papi_pfm_ntv_code_to_bits,
diff -rupN papi400t/src/perfmon.c papi400b/src/perfmon.c
--- papi400t/src/perfmon.c 2009-11-17 23:37:42.000000000 -0500
+++ papi400b/src/perfmon.c 2010-01-27 17:26:42.000000000 -0500
@@ -1,6 +1,6 @@
/*
* File: perfmon.c
-* CVS: $Id: perfmon.c,v 1.97 2009/11/18 04:37:42 mucci Exp $
+* CVS: $Id: perfmon.c,v 1.97.4.1 2010/01/27 22:26:42 jagode Exp $
* Author: Philip Mucci
* mucci@cs.utk.edu
* Mods: Brian Sheely
@@ -42,6 +42,7 @@ extern int get_cpu_info(PAPI_hw_info_t *
extern papi_vector_t _papi_pfm_vector;
extern int _papi_pfm_setup_presets(char *name, int type);
extern int _papi_pfm_ntv_enum_events(unsigned int *EventCode, int modifier);
+extern int _papi_pfm_ntv_name_to_code(char *ntv_name, unsigned int *EventCode);
extern int _papi_pfm_ntv_code_to_name(unsigned int EventCode, char *ntv_name, int len);
extern int _papi_pfm_ntv_code_to_descr(unsigned int EventCode, char *ntv_descr, int len);
extern int _papi_pfm_ntv_code_to_bits(unsigned int EventCode, hwd_register_t *bits);
@@ -2216,8 +2217,8 @@ int _papi_pfm_init_substrate(int cidx)
}
SUBDBG("pfm_get_num_events: %d\n", ncnt);
MY_VECTOR.cmp_info.num_native_events = ncnt;
- strcpy(MY_VECTOR.cmp_info.name, "$Id: perfmon.c,v 1.97 2009/11/18 04:37:42 mucci Exp $");
- strcpy(MY_VECTOR.cmp_info.version, "$Revision: 1.97 $");
+ strcpy(MY_VECTOR.cmp_info.name, "$Id: perfmon.c,v 1.97.4.1 2010/01/27 22:26:42 jagode Exp $");
+ strcpy(MY_VECTOR.cmp_info.version, "$Revision: 1.97.4.1 $");
sprintf(buf,"%08x",version);
pfm_get_num_counters((unsigned int *)&MY_VECTOR.cmp_info.num_cntrs);
@@ -3764,6 +3765,7 @@ papi_vector_t _papi_pfm_vector = {
.allocate_registers = _papi_pfm_allocate_registers,
.write = _papi_pfm_write,
.ntv_enum_events = _papi_pfm_ntv_enum_events,
+ .ntv_name_to_code = _papi_pfm_ntv_name_to_code,
.ntv_code_to_name = _papi_pfm_ntv_code_to_name,
.ntv_code_to_descr = _papi_pfm_ntv_code_to_descr,
.ntv_code_to_bits = _papi_pfm_ntv_code_to_bits,

115
papi-ldflags.patch Normal file
View File

@ -0,0 +1,115 @@
commit bde3da26f1f2755689e16fc9f5ab404367d1fdc8
Author: Vince Weaver <vincent.weaver@maine.edu>
Date: Wed Jan 24 14:13:28 2018 -0500
build: fix various LDFLAGS/CFLAGS issues
issues were reported by Andreas Beckmann <anbe@debian.org>
diff --git a/src/components/Makefile_comp_tests.target.in b/src/components/Makefile_comp_tests.target.in
index 9a369adb..a4412bea 100644
--- a/src/components/Makefile_comp_tests.target.in
+++ b/src/components/Makefile_comp_tests.target.in
@@ -9,7 +9,7 @@ INCLUDE = -I. -I@includedir@ -I$(datadir) -I$(testlibdir) -I$(validationlibdir)
LIBDIR = @libdir@
PAPILIB = $(datadir)/@LIBRARY@
TESTLIB = $(testlibdir)/libtestlib.a
-LDFLAGS = @LDL@
+LDFLAGS = @LDFLAGS@ @LDL@
CC = @CC@
F77 = @F77@
CC_R = @CC_R@
diff --git a/src/components/perf_event_uncore/tests/Makefile b/src/components/perf_event_uncore/tests/Makefile
index 3ee8fc2a..d70debe6 100644
--- a/src/components/perf_event_uncore/tests/Makefile
+++ b/src/components/perf_event_uncore/tests/Makefile
@@ -17,19 +17,19 @@ perf_event_uncore_lib.o: perf_event_uncore_lib.c perf_event_uncore_lib.h
perf_event_amd_northbridge: perf_event_amd_northbridge.o $(DOLOOPS) $(UTILOBJS) $(PAPILIB) $(DOLOOPS)
- $(CC) $(LFLAGS) -o perf_event_amd_northbridge perf_event_amd_northbridge.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o perf_event_amd_northbridge perf_event_amd_northbridge.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
perf_event_uncore: perf_event_uncore.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) perf_event_uncore_lib.o
- $(CC) $(LFLAGS) -o perf_event_uncore perf_event_uncore.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o perf_event_uncore perf_event_uncore.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
perf_event_uncore_attach: perf_event_uncore_attach.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) perf_event_uncore_lib.o
- $(CC) $(LFLAGS) -o perf_event_uncore_attach perf_event_uncore_attach.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) -o perf_event_uncore_attach perf_event_uncore_attach.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
perf_event_uncore_multiple: perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB)
- $(CC) $(LFLAGS) $(INCLUDE) -o perf_event_uncore_multiple perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCLUDE) -o perf_event_uncore_multiple perf_event_uncore_multiple.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
perf_event_uncore_cbox: perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB)
- $(CC) $(LFLAGS) $(INCLUDE) -o perf_event_uncore_cbox perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
+ $(CC) $(CFLAGS) $(INCLUDE) -o perf_event_uncore_cbox perf_event_uncore_cbox.o perf_event_uncore_lib.o $(UTILOBJS) $(DOLOOPS) $(PAPILIB) $(LDFLAGS)
diff --git a/src/ctests/Makefile.recipies b/src/ctests/Makefile.recipies
index 63c107c0..201f3c85 100644
--- a/src/ctests/Makefile.recipies
+++ b/src/ctests/Makefile.recipies
@@ -350,7 +350,7 @@ code2name: code2name.c $(TESTLIB) $(PAPILIB)
$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) code2name.c $(TESTLIB) $(PAPILIB) $(LDFLAGS) -o code2name
attach_target: attach_target.c $(DOLOOPS)
- -$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) attach_target.c -o attach_target $(DOLOOPS) $(TESTLIB)
+ -$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) attach_target.c -o attach_target $(DOLOOPS) $(TESTLIB) $(LDFLAGS)
zero_attach: zero_attach.c $(TESTLIB) $(DOLOOPS) $(PAPILIB)
-$(CC) $(INCLUDE) $(CFLAGS) $(TOPTFLAGS) zero_attach.c $(TESTLIB) $(DOLOOPS) $(PAPILIB) $(LDFLAGS) -o zero_attach
diff --git a/src/ctests/Makefile.target.in b/src/ctests/Makefile.target.in
index bb51c350..fcc3373b 100644
--- a/src/ctests/Makefile.target.in
+++ b/src/ctests/Makefile.target.in
@@ -12,7 +12,7 @@ LIBRARY=@LIBRARY@
SHLIB=@SHLIB@
PAPILIB = ../@LINKLIB@
TESTLIB = $(testlibdir)/libtestlib.a
-LDFLAGS = @LDL@ @STATIC@
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
CC = @CC@
MPICC = @MPICC@
F77 = @F77@
diff --git a/src/ftests/Makefile.target.in b/src/ftests/Makefile.target.in
index 718586e5..8006dd8d 100644
--- a/src/ftests/Makefile.target.in
+++ b/src/ftests/Makefile.target.in
@@ -11,7 +11,7 @@ LIBRARY = @LIBRARY@
SHLIB=@SHLIB@
PAPILIB = ../@LINKLIB@
TESTLIB = $(testlibdir)/libtestlib.a
-LDFLAGS = @LDL@
+LDFLAGS = @LDFLAGS@ @LDL@
CC = @CC@
F77 = @F77@
CC_R = @CC_R@
diff --git a/src/utils/Makefile.target.in b/src/utils/Makefile.target.in
index a5eab438..58d438a1 100644
--- a/src/utils/Makefile.target.in
+++ b/src/utils/Makefile.target.in
@@ -11,7 +11,7 @@ LIBRARY=@LIBRARY@
SHLIB=@SHLIB@
PAPILIB = ../@LINKLIB@
TESTLIB = $(testlibdir)/libtestlib.a
-LDFLAGS = @LDL@ @STATIC@
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
CC = @CC@
MPICC = @MPICC@
F77 = @F77@
diff --git a/src/validation_tests/Makefile.target.in b/src/validation_tests/Makefile.target.in
index a5eab438..58d438a1 100644
--- a/src/validation_tests/Makefile.target.in
+++ b/src/validation_tests/Makefile.target.in
@@ -11,7 +11,7 @@ LIBRARY=@LIBRARY@
SHLIB=@SHLIB@
PAPILIB = ../@LINKLIB@
TESTLIB = $(testlibdir)/libtestlib.a
-LDFLAGS = @LDL@ @STATIC@
+LDFLAGS = @LDFLAGS@ @LDL@ @STATIC@
CC = @CC@
MPICC = @MPICC@
F77 = @F77@

365
papi.spec
View File

@ -1,83 +1,388 @@
%bcond_with bundled_libpfm
# rdma is not available
%ifarch %{arm}
%{!?with_rdma: %global with_rdma 0}
%else
%{!?with_rdma: %global with_rdma 1}
%endif
Summary: Performance Application Programming Interface
Name: papi
Version: 4.0.0
Release: 2%{?dist}
Version: 5.6.0
Release: 6%{?dist}
License: BSD
Group: Development/System
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-4.0.0-patch1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Patch1: papi-ldflags.patch
BuildRequires: autoconf
BuildRequires: doxygen
BuildRequires: ncurses-devel
BuildRequires: gcc-gfortran
BuildRequires: kernel-headers >= 2.6.31
BuildRequires: kernel-headers >= 2.6.32
BuildRequires: chrpath
BuildRequires: lm_sensors-devel
%if %{without bundled_libpfm}
BuildRequires: libpfm-devel >= 4.6.0-1
BuildRequires: libpfm-static >= 4.6.0-1
%endif
# Following required for net component
BuildRequires: net-tools
%if %{with_rdma}
# Following required for inifiband component
BuildRequires: rdma-core-devel
BuildRequires: infiniband-diags-devel
%endif
BuildRequires: perl-generators
#Right now libpfm does not know anything about s390 and will fail
ExcludeArch: s390, s390x
ExcludeArch: s390 s390x
%description
PAPI provides a programmer interface to monitor the performance of
running programs.
%package libs
Summary: Libraries for PAPI clients
Group: Development/System
%description libs
This package contains the run-time libraries for any application that wishes
to use PAPI.
%package devel
Summary: Header files for the compiling programs with PAPI
Group: Development/System
Requires: papi = %{version}-%{release}
Requires: pkgconfig
%description devel
PAPI-devel includes the C header files that specify the PAPI userspace
PAPI-devel includes the C header files that specify the PAPI user-space
libraries and interfaces. This is required for rebuilding any program
that uses PAPI.
%package testsuite
Summary: Set of tests for checking PAPI functionality
Group: Development/System
Requires: papi = %{version}-%{release}
%description testsuite
PAPI-testuiste includes compiled versions of papi tests to ensure
that PAPI functions on particular hardware.
%package static
Summary: Static libraries for the compiling programs with PAPI
Group: Development/System
Requires: papi = %{version}-%{release}
%description static
PAPI-static includes the static versions of the library files for
the PAPI user-space libraries and interfaces.
%prep
%setup -q
%patch1 -p1
%patch1 -p1 -b .ldflags
%build
cd src
%configure --disable-static
make
%if %{without bundled_libpfm}
# Build our own copy of libpfm.
%global libpfm_config --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir}
%endif
#%check
#cd src
#make fulltest
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"
# 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}
#generate updated versions of the documentation
#DBG workaround to make sure libpfm just uses the normal CFLAGS
pushd ../doc
DBG="" make
DBG="" make install
popd
%install
rm -rf $RPM_BUILD_ROOT
cd src
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
# Remove the static libraries. Static libraries are undesirable:
# https://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/*
%dir /usr/share/papi
/usr/share/papi/papi_events.csv
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
%doc %{_mandir}/man1/*
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files libs
%{_libdir}/*.so.*
/usr/share/papi
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%{_includedir}/perfmon
%if %{with bundled_libpfm}
%{_includedir}/perfmon/*.h
%endif
%{_libdir}/*.so
%{_libdir}/pkgconfig/papi*.pc
%doc %{_mandir}/man3/*
%doc %{_mandir}/man1/*
%files testsuite
/usr/share/papi/run_tests*
/usr/share/papi/ctests
/usr/share/papi/ftests
/usr/share/papi/validation_tests
/usr/share/papi/components
/usr/share/papi/testlib
%files static
%{_libdir}/*.a
%changelog
* Mon Feb 08 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
* Thu May 17 2018 William Cohen <wcohen@redhat.com> - 5.6.0-6
- Dynamically link utilities and tests to papi libraries.
* Mon Apr 30 2018 William Cohen <wcohen@redhat.com> - 5.6.0-5
- Include various LDFLAGS/CFLAGS.
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 31 2018 William Cohen <wcohen@redhat.com> - 5.6.0-3
- Bump and rebuild.
* Thu Dec 21 2017 William Cohen <wcohen@redhat.com> - 5.6.0-2
- Correct infiniband buildrequires.
* Thu Dec 21 2017 William Cohen <wcohen@redhat.com> - 5.6.0-1
- Rebase to papi-5.6.0.
* Mon Aug 28 2017 Honggang LI <honli@redhat.com> - 5.5.1-6
- Disable RDMA support on ARM32
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Feb 2 2017 William Cohen <wcohen@redhat.com> - 5.5.1-2
- Bump version and rebuild due to new libgfortan.so version.
* Fri Nov 18 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-1
- Rebase to papi-5.5.1.
* Wed Sep 14 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-1
- Rebase to papi-5.5.0.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jan 26 2016 William Cohen <wcohen@redhat.com> - 5.4.3-1
- Rebase to papi-5.4.3.
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Mar 6 2015 William Cohen <wcohen@redhat.com> - 5.4.1-2
- Make sure using libpfm-4.6.0.
* Tue Mar 3 2015 William Cohen <wcohen@redhat.com> - 5.4.1-1
- Rebase to papi-5.4.1.
* Wed Feb 11 2015 William Cohen <wcohen@redhat.com> - 5.4.0-3
- Bump version and rebuild.
* Thu Dec 18 2014 William Cohen <wcohen@redhat.com> - 5.4.0-2
- Split out papi-libs as separate subpackage. (#1172875)
* Mon Nov 17 2014 William Cohen <wcohen@redhat.com> - 5.4.0-1
- Rebase to papi-5.4.0.
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Mon Aug 4 2014 William Cohen <wcohen@redhat.com> - 5.3.2-1
- Rebase to 5.3.2.
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2.16.ga7f6159
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Jan 17 2014 Lukas Berk <lberk@redhat.com> - 5.3.0-1.16.ga7f6159
- Automated weekly rawhide release
* Thu Jan 16 2014 William Cohen <wcohen@redhat.com> - 5.3.0-1
- Rebase to 5.3.0.
* Tue Jan 14 2014 William Cohen <wcohen@redhat.com> - 5.2.0-5
- Add presets for Intel Silvermont.
* Mon Jan 13 2014 William Cohen <wcohen@redhat.com> - 5.2.0-4
- Add presets for Haswell and Ivy Bridge.
* Wed Aug 14 2013 William Cohen <wcohen@redhat.com> - 5.2.0-2
- Enable infiniband and stealtime components.
* Wed Aug 07 2013 William Cohen <wcohen@redhat.com> - 5.2.0-1
- Rebase to 5.2.0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Jul 24 2013 William Cohen <wcohen@redhat.com> - 5.1.1-7
- rhbz830275 - Add support for POWER8 processor to PAPI
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-6
- Add autoconf buildrequires.
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-5
- rhbz986673 - /usr/lib64/libpapi.so is unowned
- Package files in /usr/share/papi only once.
- Avoid dependency problem with parallel make of man pages.
* Fri Jul 19 2013 William Cohen <wcohen@redhat.com> - 5.1.1-4
- Correct changelog.
* Fri Jul 5 2013 William Cohen <wcohen@redhat.com> - 5.1.1-3
- Add man page corrections/updates.
* Fri Jun 28 2013 William Cohen <wcohen@redhat.com> - 5.1.1-2
- Add testsuite subpackage.
* Thu May 30 2013 William Cohen <wcohen@redhat.com> - 5.1.1-1
- Rebase to 5.1.1
* Mon Apr 15 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-2
- Fix arm FTBS rhbz 951806.
* Tue Apr 9 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-1
- Rebase to 5.1.0.2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Jan 14 2013 William Cohen <wcohen@redhat.com> - 5.0.1-5
- Add armv7 cortex a15 presets.
* Tue Dec 04 2012 William Cohen <wcohen@redhat.com> - 5.0.1-4
- Disable ldconfig on install.
* Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3
- Avoid duplicated shared library.
* Wed Oct 03 2012 William Cohen <wcohen@redhat.com> - 5.0.1-2
- Make sure using compatible version of libpfm.
* Thu Sep 20 2012 William Cohen <wcohen@redhat.com> - 5.0.1-1
- Rebase to 5.0.1.
* Mon Sep 10 2012 William Cohen <wcohen@redhat.com> - 5.0.0-6
- Back port fixes for Intel Ivy Bridge event presets.
* Thu Aug 30 2012 William Cohen <wcohen@redhat.com> - 5.0.0-5
- Fixes to make papi with unbundled libpfm.
* Mon Aug 27 2012 William Cohen <wcohen@redhat.com> - 5.0.0-2
- Keep libpfm unbundled.
* Fri Aug 24 2012 William Cohen <wcohen@redhat.com> - 5.0.0-1
- Rebase to 5.0.0.
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-4
- Use siginfo_t rather than struct siginfo.
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-3
- Correct build requires.
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-2
- Unbundle libpfm4 from papi.
- Correct description spellings.
- Remove unused test section.
* Fri Apr 20 2012 William Cohen <wcohen@redhat.com> - 4.4.0-1
- Rebase to 4.4.0.
* Fri Mar 9 2012 William Cohen <wcohen@redhat.com> - 4.2.1-2
- Fix overrun in lmsensor component. (rhbz797692)
* Tue Feb 14 2012 William Cohen <wcohen@redhat.com> - 4.2.1-1
- Rebase to 4.2.1.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
- Remove unwanted man1/*.c.1 files. (rhbz749725)
* Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
- Include appropirate man pages with papi rpm. (rhbz749725)
- Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
* Thu Oct 27 2011 William Cohen <wcohen@redhat.com> - 4.2.0-1
- Rebase to papi-4.2.0.
* Fri Aug 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-3
- Provide papi-static.
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-2
- Use corrected papi-4.1.3.
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-1
- Rebase to papi-4.1.3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Jan 24 2011 William Cohen <wcohen@redhat.com> - 4.1.2.1-1
- Rebase to papi-4.1.2.1
* Fri Oct 1 2010 William Cohen <wcohen@redhat.com> - 4.1.1-1
- Rebase to papi-4.1.1
* Tue Jun 22 2010 William Cohen <wcohen@redhat.com> - 4.1.0-1
- Rebase to papi-4.1.0
* Mon May 17 2010 William Cohen <wcohen@redhat.com> - 4.0.0-5
- Test run with upstream cvs version.
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-4
- Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-3
- Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
- correct the ctests/shlib test
- have PAPI_set_multiplex() return proper value
- properly handle event unit masks
- correct PAPI_name_to_code() to match events
- Resolves: rhbz562935 Rebase to papi-4.0.0
* Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
- Generate papi.spec file for papi-4.0.0.

View File

@ -1 +1 @@
ed42e99a636283ceb55563d0259d83b9 papi-4.0.0.tar.gz
SHA512 (papi-5.6.0.tar.gz) = b2a1536f220081d08ee9bc94fddbf422e36c60c55b0536bc43dec074bdaf23afaedbdd755b7e6af25c4c0ce582cc7ad4c59e2adc1801e75c482d472b080439be