!24 Update to version 7.0.1
From: @wang--ge Reviewed-by: @lyn1001 Signed-off-by: @lyn1001
This commit is contained in:
commit
b64ba0eec1
Binary file not shown.
BIN
papi-7.0.1.tar.gz
Normal file
BIN
papi-7.0.1.tar.gz
Normal file
Binary file not shown.
@ -1,7 +1,19 @@
|
|||||||
diff -ruN papi-6.0.0/src/libpfm4/config.mk papi/src/libpfm4/config.mk
|
From 78b4e79c4f51a4cb9244ba1d59840ef8a76518cb Mon Sep 17 00:00:00 2001
|
||||||
--- papi-6.0.0/src/libpfm4/config.mk 2022-10-29 13:04:32.000000000 +0800
|
Date: Tue, 20 Jun 2023 15:15:04 +0800
|
||||||
+++ papi/src/libpfm4/config.mk 2023-01-15 21:16:16.101680541 +0800
|
Subject: [PATCH] papi add support riscv64
|
||||||
@@ -177,6 +177,9 @@
|
|
||||||
|
---
|
||||||
|
src/libpfm4/config.mk | 3 +++
|
||||||
|
src/linux-context.h | 2 ++
|
||||||
|
src/linux-timer.c | 20 ++++++++++++++++++++
|
||||||
|
src/mb.h | 3 +++
|
||||||
|
4 files changed, 28 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/libpfm4/config.mk b/src/libpfm4/config.mk
|
||||||
|
index 2b26947..c12fa45 100644
|
||||||
|
--- a/src/libpfm4/config.mk
|
||||||
|
+++ b/src/libpfm4/config.mk
|
||||||
|
@@ -177,6 +177,9 @@ ifeq ($(ARCH),cell)
|
||||||
CONFIG_PFMLIB_CELL=y
|
CONFIG_PFMLIB_CELL=y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -11,10 +23,11 @@ diff -ruN papi-6.0.0/src/libpfm4/config.mk papi/src/libpfm4/config.mk
|
|||||||
|
|
||||||
#
|
#
|
||||||
# you shouldn't have to touch anything beyond this point
|
# you shouldn't have to touch anything beyond this point
|
||||||
diff -ruN papi-6.0.0/src/linux-context.h papi/src/linux-context.h
|
diff --git a/src/linux-context.h b/src/linux-context.h
|
||||||
--- papi-6.0.0/src/linux-context.h 2022-10-29 13:04:32.000000000 +0800
|
index f46e557..394a480 100644
|
||||||
+++ papi/src/linux-context.h 2023-01-15 21:16:16.101680541 +0800
|
--- a/src/linux-context.h
|
||||||
@@ -37,6 +37,8 @@
|
+++ b/src/linux-context.h
|
||||||
|
@@ -39,6 +39,8 @@ typedef ucontext_t hwd_ucontext_t;
|
||||||
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
|
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
|
||||||
#elif defined(__hppa__)
|
#elif defined(__hppa__)
|
||||||
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.sc_iaoq[0]
|
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.sc_iaoq[0]
|
||||||
@ -23,11 +36,12 @@ diff -ruN papi-6.0.0/src/linux-context.h papi/src/linux-context.h
|
|||||||
#else
|
#else
|
||||||
#error "OVERFLOW_ADDRESS() undefined!"
|
#error "OVERFLOW_ADDRESS() undefined!"
|
||||||
#endif
|
#endif
|
||||||
diff -ruN papi-6.0.0/src/linux-timer.c papi/src/linux-timer.c
|
diff --git a/src/linux-timer.c b/src/linux-timer.c
|
||||||
--- papi-6.0.0/src/linux-timer.c 2022-10-29 13:04:32.000000000 +0800
|
index 0eaa79c..46bfe75 100644
|
||||||
+++ papi/src/linux-timer.c 2023-01-15 21:16:16.101680541 +0800
|
--- a/src/linux-timer.c
|
||||||
@@ -288,6 +288,27 @@
|
+++ b/src/linux-timer.c
|
||||||
return 0;
|
@@ -300,7 +300,27 @@ get_cycles( void )
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
+/************************/
|
+/************************/
|
||||||
@ -36,17 +50,17 @@ diff -ruN papi-6.0.0/src/linux-timer.c papi/src/linux-timer.c
|
|||||||
+
|
+
|
||||||
+#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
|
+#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
|
||||||
+static inline long long
|
+static inline long long
|
||||||
+get_cycles( void )
|
+get_cycles( void )
|
||||||
+{
|
+{
|
||||||
+ register unsigned long ret;
|
+ register unsigned long ret;
|
||||||
+
|
|
||||||
+ __asm__ __volatile__ ("rdcycle %0" : "=r" (ret));
|
+ __asm__ __volatile__ ("rdcycle %0" : "=r" (ret));
|
||||||
+
|
+
|
||||||
+ return ret;
|
+ return ret;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+/*
|
+/*
|
||||||
+ * TODO: riscv32 implementation can be done following example in:
|
+ * TODO: riscv32 implementation can be done following example in:
|
||||||
+ * Volume I: RISC-V User-Level ISA V2.2
|
+ * Volume I: RISC-V User-Level ISA V2.2
|
||||||
+ * 2.8 Control and Status Register Instructions
|
+ * 2.8 Control and Status Register Instructions
|
||||||
+ * Timers and Counters
|
+ * Timers and Counters
|
||||||
@ -54,9 +68,10 @@ diff -ruN papi-6.0.0/src/linux-timer.c papi/src/linux-timer.c
|
|||||||
|
|
||||||
#elif !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_CLOCK_GETTIME)
|
#elif !defined(HAVE_GETTIMEOFDAY) && !defined(HAVE_CLOCK_GETTIME)
|
||||||
#error "No get_cycles support for this architecture. "
|
#error "No get_cycles support for this architecture. "
|
||||||
diff -ruN papi-6.0.0/src/mb.h papi/src/mb.h
|
diff --git a/src/mb.h b/src/mb.h
|
||||||
--- papi-6.0.0/src/mb.h 2022-10-29 13:04:32.000000000 +0800
|
index 81797c5..347436b 100644
|
||||||
+++ papi/src/mb.h 2023-01-15 21:16:16.101680541 +0800
|
--- a/src/mb.h
|
||||||
|
+++ b/src/mb.h
|
||||||
@@ -39,6 +39,9 @@
|
@@ -39,6 +39,9 @@
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
#define rmb() asm volatile("dmb ld" ::: "memory")
|
#define rmb() asm volatile("dmb ld" ::: "memory")
|
||||||
@ -67,3 +82,6 @@ diff -ruN papi-6.0.0/src/mb.h papi/src/mb.h
|
|||||||
#elif defined(__mips__)
|
#elif defined(__mips__)
|
||||||
#define rmb() asm volatile( \
|
#define rmb() asm volatile( \
|
||||||
".set mips2\n\t" \
|
".set mips2\n\t" \
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
Name: papi
|
Name: papi
|
||||||
Version: 6.0.0
|
Version: 7.0.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Performance Application Programming Interface
|
Summary: Performance Application Programming Interface
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -8,6 +8,7 @@ Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version
|
|||||||
BuildRequires: autoconf doxygen ncurses-devel gcc-gfortran kernel-headers >= 2.6.32
|
BuildRequires: autoconf doxygen ncurses-devel gcc-gfortran kernel-headers >= 2.6.32
|
||||||
BuildRequires: chrpath lm_sensors-devel libpfm-devel >= 4.6.0-1 libpfm-static >= 4.6.0-1
|
BuildRequires: chrpath lm_sensors-devel libpfm-devel >= 4.6.0-1 libpfm-static >= 4.6.0-1
|
||||||
BuildRequires: net-tools rdma-core-devel perl-generators
|
BuildRequires: net-tools rdma-core-devel perl-generators
|
||||||
|
Requires: python3-unversioned-command
|
||||||
Provides: papi-libs = %{version}-%{release}
|
Provides: papi-libs = %{version}-%{release}
|
||||||
Obsoletes: papi-libs < %{version}-%{release}
|
Obsoletes: papi-libs < %{version}-%{release}
|
||||||
|
|
||||||
@ -71,6 +72,7 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
|
%{_includedir}/*.hpp
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/papi*.pc
|
%{_libdir}/pkgconfig/papi*.pc
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
@ -83,6 +85,9 @@ chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 20 2023 Ge Wang <wang__ge@126.com> - 7.0.1-1
|
||||||
|
- Upgrade to version 7.0.1
|
||||||
|
|
||||||
* Wed Oct 26 2022 hua <dchang@zhixundn.com> - 6.0.0-1
|
* Wed Oct 26 2022 hua <dchang@zhixundn.com> - 6.0.0-1
|
||||||
- upgrade version to 6.0.0
|
- upgrade version to 6.0.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user