Skip to content

Fix failing ArmPL SCAL tests#723

Merged
sknepper merged 1 commit into
uxlfoundation:developfrom
ndingle-arm:armpl-scal-fix
May 1, 2026
Merged

Fix failing ArmPL SCAL tests#723
sknepper merged 1 commit into
uxlfoundation:developfrom
ndingle-arm:armpl-scal-fix

Conversation

@ndingle-arm

Copy link
Copy Markdown
Contributor

Description

The BLAS SCAL function returns immediately if INCX<=0. The reference USM calls pass in ABS(INCX) but the ArmPL calls were just passing in INCX. We were therefore comparing functions called with two different inputs, and the tests were failing. The fix is to pass ABS(INCX) into the ArmPL calls as well, in common with other ArmPL calls to BLAS functions in this file (e.g. compare the ArmPL and USM nrm2 calls).

Checklist

All Submissions

  • Do all unit tests pass locally? Attach a log.
    test.log

The BLAS SCAL function returns immediately if INCX<=0. The reference
USM calls pass in ABS(INCX) but the ArmPL calls were just passing in
INCX. We were therefore comparing functions called with two different
inputs, and the tests were failing. The fix is to pass ABS(INCX) into
the ArmPL calls as well, in common with other ArmPL calls to BLAS
functions in this file (e.g. compare the ArmPL and USM nrm2 calls).
@ndingle-arm ndingle-arm requested a review from a team as a code owner April 22, 2026 10:18
@ndingle-arm

Copy link
Copy Markdown
Contributor Author

This fixes the failing SCAL tests, but there are still further unrelated BLAS rank-update failures that I will investigate separately.

@adegomme

Copy link
Copy Markdown
Contributor

Indeed I just noticed this when testing 26.01. It was passing these tests with previous versions, so something changed in armpl, no?
fix lgtm anyway, thanks a lot

@mkrainiuk mkrainiuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Looks good to me.

@sknepper sknepper merged commit b461ad6 into uxlfoundation:develop May 1, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants