[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1057761: marked as done (papi: add support for loongarch64)



Your message dated Thu, 28 Dec 2023 19:00:11 +0000
with message-id <E1rIvc3-00HZsa-0h@fasolo.debian.org>
and subject line Bug#1057761: fixed in papi 7.1.0-1
has caused the Debian Bug report #1057761,
regarding papi: add support for loongarch64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1057761: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057761
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: papi
Version: 7.0.1-1
Severity: wishlist
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the papi failed for loong64 in the Debian Package Auto-Building environment. The full compilation log can be found at https://buildd.debian.org/status/logs.php?pkg=papi&ver=7.0.1-1&arch=loong64

Please consider the patch I have attached.
And the papi source package was compiled successfully on my local loong64 rootfs environment.
If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

Description: Add support for loongarch64 
Author: Dandan Zhang <zhangdandan@loongson.cn> 
Last-Update: 2023-12-06

--- papi-7.0.1.orig/src/linux-context.h
+++ papi-7.0.1/src/linux-context.h
@@ -35,6 +35,8 @@ typedef ucontext_t hwd_ucontext_t;
 #define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.arm_pc
 #elif defined(__aarch64__)
 #define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
+#elif defined(__loongarch64)
+#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.__pc
 #elif defined(__mips__)
 #define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.pc
 #elif defined(__hppa__)
--- papi-7.0.1.orig/src/linux-timer.c
+++ papi-7.0.1/src/linux-timer.c
@@ -246,6 +246,22 @@ get_cycles( void )
 }
 
 /************************/
+/* loongarch64 get_cycles() */
+/************************/
+
+#elif defined(__loongarch64)
+static inline long long
+get_cycles( void )
+{
+	int rid = 0;
+	unsigned long ret;
+
+	__asm__ __volatile__ ( "rdtime.d %0, %1" : "=r" (ret), "=r" (rid) );
+
+	return ret;
+}
+
+/************************/
 /* POWER get_cycles()   */
 /************************/
 
--- papi-7.0.1.orig/src/mb.h
+++ papi-7.0.1/src/mb.h
@@ -39,6 +39,9 @@
 #elif defined(__aarch64__)
 #define rmb()           asm volatile("dmb ld" ::: "memory")
 
+#elif defined(__loongarch64)
+#define rmb()           __asm__ __volatile__("dbar 0" : : : "memory") 
+
 #elif defined(__mips__)
 #define rmb()           asm volatile(                                   \
                                 ".set   mips2\n\t"                      \

--- End Message ---
--- Begin Message ---
Source: papi
Source-Version: 7.1.0-1
Done: Andreas Beckmann <anbe@debian.org>

We believe that the bug you reported is fixed in the latest version of
papi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1057761@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated papi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 28 Dec 2023 00:19:54 +0100
Source: papi
Binary: libpapi-dev libpapi7.1 libpapi7.1-dbgsym libsde1 libsde1-dbgsym papi-examples papi-tools papi-tools-dbgsym
Architecture: source amd64 all
Version: 7.1.0-1
Distribution: experimental
Urgency: medium
Maintainer: Debian HPC Team <debian-hpc@lists.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Description:
 libpapi-dev - PAPI development files (headers and API documentation)
 libpapi7.1 - PAPI runtime (shared libraries)
 libsde1    - PAPI software defined events runtime (shared libraries)
 papi-examples - PAPI example files and test programs
 papi-tools - PAPI utilities
Closes: 1057761
Changes:
 papi (7.1.0-1) experimental; urgency=medium
 .
   * New upstream release.
   * Refresh patches.
   * Bump SONAME to libpapi.so.7.1.
   * Update symbols for 7.1.0.
   * Bump libpfm4-dev B-D to >= 4.13.0+git16.
   * Add support for loongarch64, thanks to Dandan Zhang.  (Closes: #1057761)
   * Upload to experimental.
Checksums-Sha1:
 f4689722a683e767292010bcc6462b7fa62ae2f0 2257 papi_7.1.0-1.dsc
 94a14913430a1cd87bba0f72bd82e10918c62128 2650676 papi_7.1.0.orig.tar.xz
 cc961eac1ce69309de2d9c38a0a99e4f99f79a0f 21212 papi_7.1.0-1.debian.tar.xz
 68d5bdb8d6dd297ba5c24a93230e556ec2925d32 329468 libpapi-dev_7.1.0-1_amd64.deb
 a9c3147e69f0d54b029b999ac5d24fd35207754a 389216 libpapi7.1-dbgsym_7.1.0-1_amd64.deb
 bc452ad590ca8cd620f5c96b04a1e6d304b52418 491388 libpapi7.1_7.1.0-1_amd64.deb
 6248ca99512c2c4ecaa70f75b112ac41d73dfd24 49752 libsde1-dbgsym_7.1.0-1_amd64.deb
 93f29f0a32d249d4c0b1b00b7804089afb27f9b2 41840 libsde1_7.1.0-1_amd64.deb
 de2ab08eb4a3e6f8f14a974e6d2741cb7a4c38a5 155712 papi-examples_7.1.0-1_all.deb
 629869e303a5eb249464580c7f1e44afa61c95c4 129124 papi-tools-dbgsym_7.1.0-1_amd64.deb
 89b58146b8fad09300dae69c24b1a3c3da29b7de 79436 papi-tools_7.1.0-1_amd64.deb
 ed6f8be88b7c43e8c4baa33da556668eb6f0bdce 8623 papi_7.1.0-1_amd64.buildinfo
Checksums-Sha256:
 5bac349e6f22f4b5037832b00a0d30b18ae91217374281d5cef61cdeb68768b1 2257 papi_7.1.0-1.dsc
 092c4be0295d7874a17f687ed3bcc71c5cad6b5bb269a6486b3c1078d12a1441 2650676 papi_7.1.0.orig.tar.xz
 42b0a259dc654f94e55dc6b47074651e884c6e58672ec566007939093adcc6f8 21212 papi_7.1.0-1.debian.tar.xz
 45b216ac82462de57cc3c99f8062e2aa0930797fe690237c437ee7d22de42da4 329468 libpapi-dev_7.1.0-1_amd64.deb
 f4a350424a2a27e43a82963cb8c131deb84254bd4d1b66250e0030488dd85259 389216 libpapi7.1-dbgsym_7.1.0-1_amd64.deb
 28fa013eeef31e20ad1cc0eff34135b1c82f8f10c186ce6a0b78a535c0639b81 491388 libpapi7.1_7.1.0-1_amd64.deb
 c4c95ee205490113a1bc6cfed4fcb22c52c5e6f1814b669a3bb9cb91f56287fe 49752 libsde1-dbgsym_7.1.0-1_amd64.deb
 53ba32ce6020c69f62d9859be69a059b3f84969c17bd4c653bd2a59b1325602d 41840 libsde1_7.1.0-1_amd64.deb
 82f511dbc33e0e5dd44200859115327a259d167ca152a7c1c75f5e914175c176 155712 papi-examples_7.1.0-1_all.deb
 64c308c28d6bace6c5e81dcf36efcf48e66805e995d18e66de3bc13cb254e776 129124 papi-tools-dbgsym_7.1.0-1_amd64.deb
 d2daf2437afd1754e372b7ee1806657a329046c9582dd63567a25db8a3b29df4 79436 papi-tools_7.1.0-1_amd64.deb
 0b7de2a9b3192b36a9f45436c1906321fb03f938522199dd2f24a81c5cf75615 8623 papi_7.1.0-1_amd64.buildinfo
Files:
 07173cab89a1a82d50594384e0cea2c8 2257 devel optional papi_7.1.0-1.dsc
 ea6a0dad60c04225ed50cc4dc5047744 2650676 devel optional papi_7.1.0.orig.tar.xz
 2adabf8edc5993395c04b7e63f7d2c77 21212 devel optional papi_7.1.0-1.debian.tar.xz
 5bb09745a8463f46b4b11dae8649bfcd 329468 libdevel optional libpapi-dev_7.1.0-1_amd64.deb
 38342f70daa789062ffcac62044654a5 389216 debug optional libpapi7.1-dbgsym_7.1.0-1_amd64.deb
 eadfe93e687785e1aa2a26712a5f21b5 491388 libs optional libpapi7.1_7.1.0-1_amd64.deb
 e7fd1b30f727db0d9313ab72adb27558 49752 debug optional libsde1-dbgsym_7.1.0-1_amd64.deb
 e1a4c005f1abdcec6a7da7b755269662 41840 libs optional libsde1_7.1.0-1_amd64.deb
 fe4b16e77d892ce38aff45a99995796b 155712 devel optional papi-examples_7.1.0-1_all.deb
 b34b8c7e52af7174a21564872e35ed78 129124 debug optional papi-tools-dbgsym_7.1.0-1_amd64.deb
 d74a32c54c55c22b28de282901172bfb 79436 devel optional papi-tools_7.1.0-1_amd64.deb
 d3dcf13f52136c885e6f5b1396c4704a 8623 devel optional papi_7.1.0-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmWMsdQQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCNNsEACudg0XRsKFfx/owEy6WIvGmXC8LBONcc5Y
R7EbU1EY5fDbZRThuYdx7/SzXGVI/FNesLSr29wg3uPnpsyrzGaTq3Kc0mnwO4HQ
YVpdM6ZSNiRhmAD4dGPDYMAX7ED/Yalhvs6n+qsq8xiqAe8Hjx+NmRKRIh1kwwNo
EmPUduFKcGncydTd/BeKx9dlv0Rr7guR83brAgR4swkKmniVi/tJW7d7Foa+y93/
LZjmBMmr5u4gdq+PyfDo2jr5rtx+T2opCgA9/WoMVgAYD/q8xhWxKJAFVspx0Bbo
Wpw50BMv4lrpk4Z4WrtPOfd9BFYJRlHlEMIiQrBzGH5dlphBztTaTvhoNaxbZ0aL
gc2NbocUuWdFejNHjjyX89Cb2efzLq8QNuHiaXS5aaPOMnmoegz5tntpBH+r27sR
45wKsYc+ADn58YxGCnZCeFyl6Zq4CwPMBdbZiN5FMK2QI6LXGAs9Zwq9TkPAOA5k
/KaWEo7U4KEtdCTMDvIV/Ll5IkWyf0uEgmmEHdkCwPyjwKf5myODffLyJbtitco2
zaAKTjD06ajc4QuXjndz4AWo0cs8MHOoJrnFwu/Zb2oziuc8aI7h3v5fTOgsFejg
oe+C67P4urfIlTKqTe3uJX9cJAIkwOKqfx2h1H8ztvDYNTAR+xbOPQafdT2Az/Qp
hfRh73Mfnw==
=H68u
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: