Skip to content

Flaky: NativeLinAlg.inv ComplexFloat returns wrong result on Linux #286

Description

@devcrocod

Multik version

0.3.0

Module

multik-openblas

Platform

JVM

Operating System

Linux

Description

NativeLinAlg.inv for ComplexFloat matrices produces incorrect inverse intermittently on Linux (Ubuntu 22.04.5 LTS, gcc-12 12.3.0, JDK 21 Temurin). The test generates an 84x84 random ComplexFloat matrix (seeded with Random(42)), computes its inverse, and verifies A * A_inv = I with epsilon 1e-4f. Failed in 2 out of 4 CI runs.

Reproducer

val a = data.getComplexFloatM(84) // deterministic 84x84 ComplexFloat matrix from Random(42)
val ainv = NativeLinAlg.inv(a)

assertComplexFloatingNDArray(mk.identity(84), NativeLinAlg.dot(a, ainv), 1e-4f) // Fails intermittently

Additional information

Flaky — failed in 2/4 CI runs.
AssertionFailedError at NativeLinAlgTest.kt:344.
CI runs: 22511673326, 22511861936.
Environment: Ubuntu 22.04.5 LTS, gcc-12 (12.3.0), g++-12, JDK 21 Temurin, x86_64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-generatedIssues or pull requests created fully or partially with the help of AI toolsbugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions