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

I have a problem, which is beyond my ability, can you give me some ideas? #52

Closed
DemoorBug opened this issue Nov 3, 2022 · 11 comments
Closed

Comments

@DemoorBug
Copy link

System: Big Sur 16.1
CPU: AMD 3600
Language: Python

截屏2022-11-03 下午3 51 50

When I use matplotlib, it reports Intel MKL ERROR. CPU 0 is not supported.

I applied the ryzen_patch patch, but it didn't work.

@mikigal
Copy link
Owner

mikigal commented Nov 3, 2022

You have to create library to "fake" intel MKL.
Read this: https://gist.github.com/bebosudo/6f43dc6b4329c197f258f25cc69f0ec0
You can also append LD_PRELOAD variable on boot using LauncherAgent/LauncherDaemon

@mikigal mikigal closed this as completed Nov 3, 2022
@DemoorBug
Copy link
Author

I also tried this method, it did not work.
His solution is to increase the speed, my problem is that it does not work and reports an error.

@mikigal
Copy link
Owner

mikigal commented Nov 3, 2022

It does not only increase speed, I used it for Adobe software some time ago when I had same issue as you.
Try to do this from terminal (in one line):
LD_PRELOAD=path/to/fake.so python3 myscript.py

@DemoorBug
Copy link
Author

fakeintel.c

int mkl_serv_intel_cpu_true() {
 return 1;
}
touch libfakeintel.so
gcc -shared -fPIC -o libfakeintel.so fakeintel.c
LD_PRELOAD=libfakeintel.so python3 scratch.py

2022-11-03 4 49 31

@mikigal
Copy link
Owner

mikigal commented Nov 3, 2022

Try compiling it to dylib: gcc -dynamiclib /Users/tomnic/Desktop/fakeintel.c -o libfakeintel.dylib
Source (and author of this lib idea): https://www.macos86.it/topic/4822-wip-photoshop-after-effects-cc-2021-premiere-pro-cc-2021-154-amd-hackintosh-fix/
You can also download compiled libfakeintel.dylib from above link

@DemoorBug
Copy link
Author

2022-11-03 5 02 01

@DemoorBug
Copy link
Author

Can your Black Apple run this code?

import matplotlib.pyplot as plt
  xt, yt=1,2
  plt.plot(xt,yt,'ro')
  plt.show()

@DemoorBug
Copy link
Author

https://gist.github.com/bebosudo/6f43dc6b4329c197f258f25cc69f0ec0 The code in this example also reports the same error

@mikigal
Copy link
Owner

mikigal commented Nov 3, 2022

I no longer use hackintosh, so I can't verify your problem.
You can try asking on AMD-OSX Discord

@DemoorBug
Copy link
Author

Well, but thank you anyway

@DemoorBug
Copy link
Author

I was using matplotlib provided by anaconda, and it turned out to be the problem, I just uninstalled it.
I installed it via python3 -m pip install -U matplotlib and it didn't report any errors. I'm so stupid, I wasted your time.🥲

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