Jump to content

PyTorch 1.10.2 AMD Hackintosh fix


tomnic

Recommended Posts

  • Moderators

Hi everybody! 

 

For python lovers I patched the PyTorch 1.10.2 to run perfectly on our AMD based hackintoshes.

 

Just replace all the files in the zip with the respective ones: https://mega.nz/file/xmIngAKA#f9yzTN6jAPcMK8Bd8U_cf28S8Jn-1NuB0CTb5Z3k924

 

~/miniconda3/lib/python3.9/site-packages/torch/lib/libiomp5.dylib
~/miniconda3/lib/libmkl_avx.1.dylib
~/miniconda3/lib/libmkl_avx2.1.dylib
~/miniconda3/lib/libmkl_avx512.1.dylib
~/miniconda3/lib/libmkl_core.1.dylib
~/miniconda3/lib/libmkl_core.dylib
~/miniconda3/pkgs/mkl-2021.4.0-hecd8cb5_637/lib/libmkl_avx.1.dylib
~/miniconda3/pkgs/mkl-2021.4.0-hecd8cb5_637/lib/libmkl_avx2.1.dylib
~/miniconda3/pkgs/mkl-2021.4.0-hecd8cb5_637/lib/libmkl_avx512.1.dylib
~/miniconda3/pkgs/mkl-2021.4.0-hecd8cb5_637/lib/libmkl_core.1.dylib
~/miniconda3/pkgs/mkl-2021.4.0-hecd8cb5_637/lib/libmkl_core.dylib

 

Remember to recodesign each one of them, the syntax is:

 

sudo codesign --force --deep --sign - ~/miniconda3/lib/python3.9/site-packages/torch/lib/libiomp5.dylib

 

...for each dylib.

 

459754374_Schermata2022-03-09alle00_37_01.thumb.png.68bf9b0afd37d5aa543dc3c869832ad3.png

 

1022407079_Schermata2022-03-09alle00_41_40.thumb.png.db3e156b1039091e44ec9a1eb8d89b75.png

collect_env.py.zip

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.