-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add macos support in build.rs
for linking to Intel MKL
#66
Comments
build.rs
for linking to Intel MKL
Root issue #18 |
Oops. I didn't that there was a separate issue for macOS and opened #72. I was able to run all examples (except for mnist since I don't have the input files) successfully on macOS 12.4 with MBP 16 M1 Max. I wasn't able to install Intel oneAPI Base Toolkit. It breaks during installation on Distribution for Python component with the error below. Do I need the whole Toolkit or only parts of it?
|
I doubt we can install Intel MKL on M1 macs. I have access to an Intel Mac, will get back with an attempt on that one. By the way, I am "YRUDancin" from reddit. |
@yerke you only need one part of the install. i think it's called something like "Intel oneAPI Math Kernel Library"? You shouldn't need to install anything for python. |
Can you expand on this? I had assumed since the mkl install page had macos as one of the dropdown options that it would be possible. |
I assume Intel MKL uses the x86-64 ISA, so it will only work with Macs with an Intel chip. M1 macs are all arm64e. You will likely have to fall back to a different BLAS implementation for M1 Macs. Anyways, I have MKL and |
Running
|
I tried to update build.rs myself by replacing
But when I try to use
I am not sure how to provide this |
I found this issue on rpath that seems to be relevant: rust-lang/cargo#5077 |
As suggested in rust-lang/cargo#5077 (comment), I tried to add
and it worked! Let me try to check all other features and make a PR. |
Created PR #73. |
I just tested all four MKL configurations on my machine and it was successful. |
Thank so much both of you for your work on this! 🎉 🚀 |
MacOS support needs
REDIST_DIRS
,LINK_DIRS
, andLINK_LIBS
.Originally posted by @coreylowman in #64 (comment)
The text was updated successfully, but these errors were encountered: