Hi,
python-cython-blis (1.0.0-3) fails to build from source on ppc64el due
to test failures in float32 GEMM, including:
tests/test_gemm.py::test_memoryview_float_notrans
Root Cause Investigation:
The Debian package vendors BLIS 0.9.0 and builds it using the power9
configuration on ppc64el.
In BLIS 0.9.0, the POWER9 context initialization in
config/power9/bli_cntx_init_power9.c registers bli_sgemmbb_power9_ref as
the float32 GEMM kernel. It also uses the associated gemmbb packing
pathway, including packm_6xk_bb4_power9_ref.
Upstream BLIS issue #155 addresses the relevant problem. In BLIS 1.0
(e.g. stable-apr24-cand0), the POWER9 context initialization has been
refactored using bli_cntx_set_ukrs, bli_cntx_set_ukr_prefs, and
bli_cntx_set_blkszs, with corresponding updates to the packing and
kernel pathways.
Empirical Verification:
Testing was performed on a ppc64el running Debian sid
BLIS 1.0 with POWER9 configuration: Built using ./configure power9 and
tested with a standalone C bli_sgemm reproducer using non-zero initial
output values and beta = 0.0f. All seven matrix test cases passed.
BLIS 0.9.0 with POWER9 configuration: An earlier run of the same
reproducer showed incorrect output values, although a subsequent run
passed all seven cases.
Generic configuration: Both BLIS 0.9.0 and BLIS 1.0.0 built successfully
using ./configure generic and passed their respective test suites.
The upstream BLIS 1.0 implementation passes the standalone SGEMM tests,
and both versions pass their test suites with the generic configuration.
The Debian package using bundled BLIS 0.9.0, however, continues to
exhibit the float32 GEMM test failure during its build.
Thanks,
Trupti