Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

How to use mkl on M2 mac

Shun3
Beginner
3,770 Views

I want to use mkl on m2 mac.

I get the following warning when I try to compile.

"ld: warning: ignoring file /opt/intel/oneapi/compiler/latest/mac/compiler/lib/libiomp5.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64"

 

Is it not available for m2 mac?

If you run the following HP cmake, the makefile will be created without any problems.

https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-macos/2023-0/cmake-config-for-onemkl.html

 

iberico@ibericonoMac-mini build % ls

CMakeCache.txt  CMakeFiles/

iberico@ibericonoMac-mini build % cmake ..

-- MKL_ARCH: intel64

-- MKL_LINK: dynamic

-- MKL_INTERFACE_FULL: intel_ilp64

-- MKL_THREADING: intel_thread

-- MKL_MPI: mpich

-- Found MKL: mpich  

-- Found MKL: /opt/intel/oneapi/mkl/2023.1.0  

-- Found MKL: /opt/intel/oneapi/mkl/2023.1.0/lib/libmkl_intel_ilp64.dylib  

-- Found MKL: /opt/intel/oneapi/mkl/2023.1.0/lib/libmkl_intel_thread.dylib  

-- Found MKL: /opt/intel/oneapi/mkl/2023.1.0/lib/libmkl_core.dylib  

-- Found MKL: /opt/intel/oneapi/compiler/latest/mac/compiler/lib/libiomp5.dylib  

-- Configuring done (0.0s)

-- Generating done (0.0s)

-- Build files have been written to: /Users/iberico/my_program/03_test_program/mkl_test/test/build

 

If you know of a solution, please let me know.

 

0 Kudos
4 Replies
PraneethA_Intel
Moderator
3,730 Views

Hi Ogawa,


Thanks for posting in Intel communities.


>>Is it not available for m2 mac?

Please see the below URL for a list of the OS/compilers/architectures supported by Intel MKL.

https://www.intel.com/content/www/us/en/developer/articles/system-requirements/oneapi-math-kernel-library-system-requirements.html


Thanks and Regards,

Praneeth Achanta


0 Kudos
PraneethA_Intel
Moderator
3,666 Views


Hi Ogawa, 


We have not heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Praneeth Achanta


0 Kudos
PraneethA_Intel
Moderator
3,593 Views

Hi Ogawa,


We have not heard back from you. We hope the information provided helped. If you need any additional information please post a new question as this thread will no longer be monitored by Intel.


Thanks and Regards,

Praneeth Achanta


0 Kudos
BirkS
Beginner
3,177 Views

This is still an issue with the latest version of oneAPI. It appear in the bottom row here, that MKL on macOS only is available in an x64 version but not an arm64 version.:

https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-macos/2023-0/pip.html

 

This is rapidly becoming an issue for a lot of developers using Apple devices. Will there be support for this growing architecture, and in that case - when can it be expected?

 

Kind regards,

Birk

0 Kudos
Reply