Skip to content

Cortex-A72 target produces wrong BLAS Level-3 results #5997

Closed

Description

@kmehltretter82

OpenBLAS commit 632ef87 (0.3.34.dev)
produces incorrect double-precision results on a real Raspberry Pi 400 when
built for TARGET=CORTEXA72.

Hardware: Raspberry Pi 400, Cortex-A72 r0p3, 4 CPUs
OS: Debian arm64, Linux 6.18.39+rpt-rpi-v8
Compiler: GCC 14.2.0-19

Build settings:

TARGET=CORTEXA72 DYNAMIC_ARCH=0 NO_SHARED=1 NO_LAPACK=1 ONLY_CBLAS=1
BUILD_DOUBLE=1, with OPENBLAS_NUM_THREADS=1

The Level-3 checks fail consistently:

DSYMM max_abs_error=57.47919143876338
DTRMM max_abs_error=1.9381688466111771
DSYRK max_abs_error=39.17479191438764
DSYR2K max_abs_error=75.115338882283027
failures=4

The generic ARMV8 and Cortex-A57 targets pass. The previous Cortex-A72
version also passed.

The first bad commit is:
560caa5
Add Cortex-A72 DGEMM 6x8 microkernel with MR=6 packers and TRSM

Its parent is good:
05518e0
Merge pull request #5969 from martin-frbg/lapack134

Activity

  1. martin-frbg commented on Aug 26, 2026

    @martin-frbg
    Collaborator

    Hmm, not sure how that slipped through @hugomeiland - it's ultimately related to the planned untangling in #5573 but I assume the TRMM workaround was tested ?

  2. kmehltretter82 commented on Aug 28, 2026

    @kmehltretter82
    Author

    QEMU debugging suggests

    • symm_*copy_6.c: remainder handling uses (n - n/6).
    • trmmkernel_2x2.c incompatible with the Cortex-A72 6×8 packing layout.
    • SYRK/SYR2K diagonal blocking assumes a power-of-two unroll
  3. hugomeiland commented on Aug 29, 2026

    @hugomeiland
    Contributor

    Apologies — when landing the Cortex-A72 6×8 DGEMM path I did not properly test beyond DGEMM, so the Level-3 regressions (DSYMM / DTRMM / DSYRK / DSYR2K) slipped through.

    #6002 should fix this: packer/TRMM/SYRK UNROLL_MN corrections plus an ASM 6×8 DTRMM ukernel, verified with dblat3 on Graviton1 (a1.metal).

  4. martin-frbg commented on Aug 29, 2026

    @martin-frbg
    Collaborator

    Thank you for the quick fix

  5. added a commit that references this issue on Aug 30, 2026
    c1594a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions