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

Move OPENBLAS settings from Base to LinearAlgebra #42473

Merged
merged 2 commits into from
Oct 10, 2021
Merged

Conversation

ViralBShah
Copy link
Member

I wonder if this is too late and if libopenblas already gets dlopened by the time we reach here. And if this is ok, can we move this all the way into the __init__ for the BLAS module?

Copy link
Member

@staticfloat staticfloat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is too late and if libopenblas already gets dlopened by the time we reach here.

I think you're right; we should put it here instead. Putting it into the JLL itself more directly ties this to the library, and makes sure that no matter when we do using OpenBLAS_jll, we are guaranteed to set up the environment just in time.

stdlib/LinearAlgebra/src/LinearAlgebra.jl Outdated Show resolved Hide resolved
@ViralBShah
Copy link
Member Author

It's hard to tell if any of the failing tests are related to this PR.

@DilumAluthge
Copy link
Member

Buildkite is now passing on master. If you rebase this PR on the latest master, it will use the latest Buildkite configuration.

@DilumAluthge DilumAluthge added the external dependencies Involves LLVM, OpenBLAS, or other linked libraries label Oct 8, 2021
@ViralBShah
Copy link
Member Author

@staticfloat Can you look at this and merge? Do I have it in the right place in OpenBLAS_jll?

@ViralBShah ViralBShah merged commit a512f1a into master Oct 10, 2021
@ViralBShah ViralBShah deleted the vs/openblas-init-2 branch October 10, 2021 18:50
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
* Move OPENBLAS settings from Base to LinearAlgebra

* Use __init__ of openblas for setting openblas env variables
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
* Move OPENBLAS settings from Base to LinearAlgebra

* Use __init__ of openblas for setting openblas env variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependencies Involves LLVM, OpenBLAS, or other linked libraries linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants