Skip to content

BUG: dnrm2 basic failures on a subset of platforms (observed in SciPy) #4551

@tylerjereddy

Description

@tylerjereddy

We recently experimented with bumping SciPy OpenBLAS version used in wheels from a pretty old version (v0.3.20-571-g3dec11c6) to 0.3.26 stable release in scipy/scipy#20215, in the hopes of fixing the reproducer in scipy/scipy#16930, which can be summarized as the following test, which we should perhaps adjust to be a tractable C-level test in this project:

def test_gh_169309():
    x = np.repeat(10, 9)
    actual = scipy.linalg.blas.dnrm2(x, 5, 3, -1)
    expected = math.sqrt(500)
    assert_allclose(actual, expected)

Bumping to 0.3.26 appeared to fix the issue on x86_64 Linux, but not on some other platforms, including MacOS ARM and Linux aarch64. In both cases, looks like actual ends up as 0..

I could probably help draft in the regression test if you tell me where to put it, but I'm unlikely to have the expertise to provide the fix.

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