Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBLAS with -DDYNAMIC_ARCH=ON produces illegal ELF files #83

Open
stellaraccident opened this issue Feb 12, 2025 · 0 comments
Open

OpenBLAS with -DDYNAMIC_ARCH=ON produces illegal ELF files #83

stellaraccident opened this issue Feb 12, 2025 · 0 comments

Comments

@stellaraccident
Copy link
Contributor

Repro:

  • in third-party/host-blas/CMakeLists, change -DDYNAMIC_ARCH=OFF to ON.
  • ninja therock-host-blas
  • ldd third-party/host-blas/stage/lib/host-math/lib/libopenblas.so

The last command will print "not a dynamic executable". An attempt to use it will cause load errors.

Interestingly, it does show as a shared library:

# file third-party/host-blas/stage/lib/host-math/lib/libopenblas.so.0.3
third-party/host-blas/stage/lib/host-math/lib/libopenblas.so.0.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=78698c2b16e8d0a4bd51456b5a1a5c1a81dbe7b6, not stripped
stellaraccident added a commit that referenced this issue Feb 12, 2025
* Adds host-math group and includes OpenBLAS and SuiteSparse in it to
provide libcholmod (so that we have the option to avoid system deps for
these).
* Includes upstream patch ROCm/hipSOLVER#364
* Includes upstream patch ROCm/rocminfo#97

Includes workarounds for #82, #83

---------

Co-authored-by: Stella Laurenzo <[email protected]>
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

No branches or pull requests

1 participant