Skip to content

cheev_ is producing wrong results with C_LAPACK=ON #5649

@AGonzales-amd

Description

@AGonzales-amd

Related issue: #5562

Version: v0.3.31 and develop branch
Host: Ubuntu 24.04
OpenBLAS configure command: cmake -GNinja -B build -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DC_LAPACK=ON -DTARGET=HASWELL -DDYNAMIC_ARCH=ON -DBUILD_TESTING=OFF

cheev_ produces the wrong results when C_LAPACK=ON is set. The result is correct otherwise.

  • Expected result (w/o C_LAPACK): W={ 361.063, 381.069, 385.608, 393.389, 398.056, 405.462, 409.183, 415.139, 416.88, 422.932, 427.312, 460.909 }
  • Actual result (C_LAPACK=ON): W={ -1320.84, -1304.57, -1263.61, -1163.4, -1031.98, -979.717, 326.446, 379.353, 409.357, 447.614, 465.384, 806.674 }

Build reproducer:

  1. g++ test_heev_dynamic_alloc.cpp -L<path/to/openblas/lib> -lopenblas -o test_heev_dynamic_alloc
  2. ./test_heev_dynamic_alloc

test_heev_dynamic_alloc.cpp

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