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

Can't load MKL into a VEC #9

Closed
insertinterestingnamehere opened this issue Dec 17, 2020 · 3 comments
Closed

Can't load MKL into a VEC #9

insertinterestingnamehere opened this issue Dec 17, 2020 · 3 comments

Comments

@insertinterestingnamehere
Copy link
Member

MKL doesn't load correctly into a VEC yet. All our current examples have had to run with OpenBLAS because of this. When we try to load MKL we get a dynamic linker error claiming that omp_num_threads can't be found, but it's not clear why there would be any problems with that.

@insertinterestingnamehere
Copy link
Member Author

Note: anaconda has some special compatibility code for loading MKL. They ship it in a Python-level mkl package that their MKL-based numpy builds import first to get MKL loaded correctly. That's one likely point of failure that could cause an issue like this.

@arthurp
Copy link
Member

arthurp commented Apr 19, 2021

The first place to look is in the dlopen wrapper for code inside VECs. It may be overriding or changing handling of the GLOBAL and LOCAL flags since those were broken in the unpatched glibc. Now that we use the patched glibc, it should work, but it's very possible that the wrapper still overrides the behavior since I may not have properly updated the wrapper and it might be overriding the GLOBAL/LOCAL flag in some way.

@insertinterestingnamehere
Copy link
Member Author

Weirdly enough, this works now. If I install the latest version MKL via conda-forge it no longer uses the mkl-service package that had all that business with RTLD_GLOBAL. So MKL works now, but numba is broken by a similar issue. I'm closing this one. I'll file a separate issue to discuss.

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

2 participants