-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Intel mkl dependency may break the installation for ARM Macs #821
Comments
@SeaCelo. Can you post the error message you are getting? Or maybe you've already fixed it. I have not run into this problem on my machine (MacBook Pro, Apple M1 Max Chip). Our recommended installation steps are the following:
You can now test whether this works by being in your terminal or Anaconda prompt and having the After completing these steps, everything should be set up on your machine to run |
@jdebacker and @SeaCelo. I am currently running time and run tests of the
Google Cloud Platform (GSP) Virtual Machine (VM) with Linux
|
@rickecon Please also check Activity Monitor when running the test. Depending on how I installed Python it would report either More on our tests here: EAPD-DRB/OG-ZAF#15 Whether Python was running under Rosetta or natively had a large performance delta in my tests:
|
Linking to the discussion that explains the issue and a work around. |
ARM Macs cannot use the Intel MKL library. Other libraries are available. See for example this comment thread: https://developer.apple.com/forums/thread/695963.
The installation of OG-CORE requires this MKL library in two places: environment.yml and setup.py
This seems (not confirmed) to be breaking the installation for Macs running the ARM chips (M1, M2).
There are two ways to getting around this for now.
*First, make sure you installed anaconda correctly (I prefer miniforge). See links below for some help.
*Second:
A) line 8 of environment.yml should be commented if you are running ARM Mac.
B) setup.py introduced the package dependency requirement of 'mkl' in this commit: https://github.com/PSLmodels/OG-Core/commit/4a09c5d1a27946af941038a3a8526ddde92c6dc3
PS: If you have an M1 Mac you should be installing anaconda for the right architecture. Some (older) guides:
https://www.youtube.com/watch?v=w2qlou7n7MA
https://towardsdatascience.com/how-to-easily-set-up-python-on-any-m1-mac-5ea885b73fab
https://stackoverflow.com/questions/65534042/anaconda-and-upgrading-to-new-m1-mac
The text was updated successfully, but these errors were encountered: