The package fails to build on some archs. See https://buildd.debian.org/status/package.php?p=btas&suite=sid Able to reproduce the issue while building the package on pp64el and checked the build logs from pp64el (https://buildd.debian.org/status/fetch.php?pkg=btas&arch=ppc64el&ver=1.0.0-1.1&stamp=1757416358&raw=0). From the logs,the issue seems to be because some test cases are falling back to SVD. Maybe that is causing a slighthly more value than the threshold. Trying to check more on this. 2: ./unittest/ztensor_cp_test.cc:150: FAILED: 2: CHECK(std::abs(diff) <= epsilon ) 2: with expansion: 2: 0.0000118685 <= 0.00001 2: 2: Fast pseudo-inverse failed reverting to normal pseudo-inverse 2: Fast pseudo-inverse failed reverting to normal pseudo-inverse
Hello,
I found that the test case failure is not due to incorrect behavior but
rather seems like it is because of platform-specific floating-point
precision differences on ppc64le. The numerical error is marginal and
well within acceptable limits for floating-point operations involving
matrix decompositions and pseudo-inverses.
This appears to be a case where the test's absolute epsilon (|1e-5|) is
a bit strict for some platforms, especially when fallback to the normal
pseudo-inverse occurs (as the fast pseudo-inverse fails). The same issue
also appears to be for arm64.
To resolve this, I suggest for relaxing the epsilon slightly. Following
is the diff for that.
diff --git a/unittest/ztensor_cp_test.cc b/unittest/ztensor_cp_test.cc
index e9f9a0f..4cd8446 100644
--- a/unittest/ztensor_cp_test.cc
+++ b/unittest/ztensor_cp_test.cc
@@ -26,6 +26,9 @@ TEST_CASE("ZCP") {
// double epsilon = fmax(1e-10, std::numeric_limits<double>::epsilon());
double epsilon = 1e-5;
+ #if defined(__PPC64__) || defined(__powerpc64__)
+ epsilon = 2e-5;
+ #endif
ztensor Z3(3, 2, 4);
std::ifstream inp3(__dirname + "/z-mat3D.txt");
if (inp3.is_open()) {
debian@ltc-zz14-lp9:~/test-btas/btas-1.0.0/debian/patches$
Thanks and regards.
We believe that the bug you reported is fixed in the latest version of
btas, 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 1115288@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Banck <mbanck@debian.org> (supplier of updated btas 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)
Format: 1.8
Date: Sat, 22 Aug 2026 14:22:04 +0200
Source: btas
Architecture: source
Version: 1.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debichem Team <debichem-devel@lists.alioth.debian.org>
Changed-By: Michael Banck <mbanck@debian.org>
Closes: 1115288
Changes:
btas (1.0.0-2) unstable; urgency=medium
.
* debian/patches/relax_test_epsilon.patch: New patch, relaxes test thresholds
on non-amd64 architectures, thanks to Tanushree Shah (Closes: #1115288).
Checksums-Sha1:
35e61e858319bdc90ca21859affb817f78c58a26 2027 btas_1.0.0-2.dsc
d7daeba6a5f22cc1824e132139030be8f94ba795 10396 btas_1.0.0-2.debian.tar.xz
2c4ecc80f52dc2298557ae853e4343cf8367923d 7887 btas_1.0.0-2_source.buildinfo
Checksums-Sha256:
79d0f6a526f7abbed4a7caf79749a578cf8434ee01528971991311fed28d5c4a 2027 btas_1.0.0-2.dsc
4cfbe5cb9bbe512349df98cf0eab3ee0b3afc796002f63be07d6cf5e1b3dcd7f 10396 btas_1.0.0-2.debian.tar.xz
bc0a14a4b57c6f5ef47bdd7fa36109426815fe8a52b50751526751eab2b52e66 7887 btas_1.0.0-2_source.buildinfo
Files:
78ff37bea0391ca7a9f1a882d3abc164 2027 libdevel optional btas_1.0.0-2.dsc
6c9917a2de3143b4a1d2cc16bdd68c4c 10396 libdevel optional btas_1.0.0-2.debian.tar.xz
a9ab9e876edfa618c3d408f9e2d91795 7887 libdevel optional btas_1.0.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEnKh3dJ+rLk+paGLs3GhqJ7Q0gbAFAmqJlHMACgkQ3GhqJ7Q0
gbCWYRAAkCQNsmTiGV/33zRmMLiV0GSDtQRRIX2pss1+pbdeULFQ8ylQmRLC85WD
dOxtX6o9HdXnAOOLlYXlHZSFbFKEfvQe85L/TBqMjBwwOgjmUJZI45XXtCF80kuz
D1sy4Av1VV+cIcbvwUitJgND+2ODMjBGkF8DcBVjwgH1NiYEhWXE6cuD8JU1RUTK
DWEArZqmANqwXBsF/iO9jEeMT4hOhpVQww0Hnb7lN9QklnOaSTIFiq+uNSUQXAEg
x+YVCtGSyEfxeAYXFr5m4fOldf/ZEQgwm8FLocAMPWgbx3J99b+mND1/xh80nDB0
49wgwC6iX9byuARGt/Uif3ESgB+V91Vk5JKzaO0UpJoaWzWXrhCpH1R4Q8c8PZM1
++ahgW1jbOW/WAjk2CVj4Unm0kHdTddKBqQD4pOrSp3DpV385Hc3kffvahIT337x
gNsrd9B154FLeXXnK4tng+petGu0AumzzSE1GKoZTvYVdCfEhrP7uh2qqXtstfhm
Bvz1/KqDIqfEFpj+vf5V80WNZB88dyRy2Ni3SwhJPjIroOnK4A3Uw55UvrmfXbqW
ezfzv+GHT5TaWZP/LmFoS0ADXzOqPI+Bbjlyi/bTi1Ro8LRxE7kjO6iEWPiBAca+
kuq840f4HFjeqH2QwRKCVFS8KQxUI4Axq5F5XoS+JmDy+3VtvcM=
=Eqbw
-----END PGP SIGNATURE-----