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

Ensure blas is statically linked #1665

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

jmazanec15
Copy link
Member

@jmazanec15 jmazanec15 commented Apr 30, 2024

Description

This fixes a bug where we set BLA_STATIC after we find the package, leading OpenBlas to be dynamically linked instead of statically linked. In 2.13 it was the other way around: https://github.com/opensearch-project/k-NN/blob/2.13/jni/CMakeLists.txt#L126-L157

Bug was introduced in #1636

Issues Resolved

Related opensearch-project/opensearch-build#4379 (comment). This may resolve the issue with binutils because we are statically linking.

Check List

  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jmazanec15
Copy link
Member Author

These failures for linux are related to using gcc 12 (opensearch-project/opensearch-build#4379 (comment)). We are moving to gcc 11, so we need to ignore these failures for now.

@naveentatikonda
Copy link
Member

@jmazanec15 Have you tested it on Windows?

@jmazanec15
Copy link
Member Author

@naveentatikonda the CI passed for windows

@jmazanec15 jmazanec15 merged commit 1961e58 into opensearch-project:main Apr 30, 2024
58 of 68 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 30, 2024
Signed-off-by: John Mazanec <[email protected]>
(cherry picked from commit 1961e58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants