-
Notifications
You must be signed in to change notification settings - Fork 32
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
Allow specifying custom location for MKL #38
base: master
Are you sure you want to change the base?
Conversation
Actually, it would be nicer to use JULIA_MKL_LOAD_PATH="@stdlib/../../site" -- no need to fix sysimg.jl afterwards (though I don't know whether that is relevant at all). |
I still don't really understand why this is needed. Could you elaborate on what is special with ArchLinux that requires this? |
Until recently, the official ArchLinux Julia package was working + I was able to build AUR package with MKL support (because e.g. TensorDecompositions.jl is 10x faster with it). What I want is that Julia is installed into /usr, as well as MKL.jl (e.g. into share/julia/site), and this is done by the OS (ArchLinux) package manager. I hope now it's a bit more clear. The alternative would be to fix the http-parser/libgit2 issue, so that it would be possible to build Julia (with MKL enabled at compile time) on ArchLinux with its current http-parser-2.9.3 package. |
I recommend other Linux distributions (e.g. Ubuntu, Mint, Fedora, etc.) then. |
Also related: #84 |
Allows specifying custom paths that would be used for MKL injection into sysimg.jl.
The paths default to the current
["@v#.#", "@"]
, but could be explicitly specified when callingenable_mkl_startup()
, or via theJULIA_MKL_LOAD_PATH
environment variable (so that it would be picked up when building sysimg uponPkg.add(MKL)
).The motivation
Now that building Julia in ArchLinux is broken (due to http-parser/libgit2 incompatibilities, see JuliaLang/julia#34785), this PR allows using the official Julia binaries to build MKL-enabled ArchLinux package.
I install MKL into /usr/share/julia/site using this AUR script snippet:
build_sysimg_with_mkl.jl is just: