Skip to content

Cmake not finding LAPACKE library when it is in OpenBlas #10

Description

@krcurtis

Hi,

FYI, I ran into issue building with install.sh script where it couldn't find the LAPACKE library. After digging into this, I found that my environment had OpenBLAS 0.3.18 and verified that the LAPACKE functions were in libopenblas.so. For example:

$ nm /app/software/OpenBLAS/0.3.18-GCC-11.2.0/lib/libopenblas.so | grep LAPACKE_dgesvd
0000000000c2eec0 T LAPACKE_dgesvd
0000000000c2f0a0 T LAPACKE_dgesvd_work
...

For some reason the CMake file FindLAPACKE.cmake could not detect it when using OpenBLAS. I used a workaround of commenting the search for LAPACKE out of the Depends.cmake files in the main project and for third-party/hawk. The kmdiff binary still built, as well as kmdiff-tests, and it reported

...
1: [ PASSED ] 32 tests.
1/1 Test #⁠1: kmdiff-tests ..................... Passed 0.47 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) = 0.49 sec

I'm not sure what the right way is to get CMake to detect it. It looked like there was some code about searching for non-standalone libraries in the CMake script but it wasn't working for some reason.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions