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

[WIP] Option to use system MKL instead of MKL_jll #83

Closed

Conversation

carstenbauer
Copy link
Member

This is a quick first attempt to solve #82 based on the ideas discussed in the context of MPI.jl here: JuliaParallel/MPI.jl#483.

Essentially, I'm trying to add a package preference use_jll to MKL.jl (using Preferences.jl) based on which the package desides to using MKL_jll or setting const libmkl_core and const libmkl_rt explicitly (pointing to a system MKL). The desired workflow is: (1) set JULIA_MKL_USE_JLL=false (2) build MKL -> MKL_jll artifact is never downloaded (it is lazy) and system MKL is used.

Sharing this early attempt (which might turn out as rubbish) to facilitate a discussion with @staticfloat started on Slack.

@carstenbauer
Copy link
Member Author

carstenbauer commented Jul 14, 2021

The find_uuid_in_project business is because @set_preferences! tries to operate on the Main module (this is where build.jl is executed I guess) rathern than MKL.jl. So I use the functions set_preferences!(uuid, ....) directly. Maybe that's complete nonsense and why this isn't working so far.

@carstenbauer
Copy link
Member Author

Draft by @staticfloat: https://gist.github.com/staticfloat/817fd946216a1af37ea4835402bbcbae

Looks like a (much!) nicer approach.

@carstenbauer
Copy link
Member Author

See #84.

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

Successfully merging this pull request may close these issues.

None yet

1 participant