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

Link R to MKL

Toong
Beginner
2,092 Views

Hello. I am new to MKL. I am a regular R user and have little experience of C or Python. I have searched materials for two days about how to link R to MKL, but most articles might be too old. I also tried many times but failed.

I have successfully installed oneAPI base toolkit by the instructions. My R is the latest 4.0.5. My MacOS is macOS Big Sur 11.2.3. 

Can anyone shed lights on how to proceed to linking R with MKL? Thanks.

0 Kudos
7 Replies
VidyalathaB_Intel
Moderator
2,065 Views

Hi,

Thanks for reaching out to us.

we are working on your issue internally. we will get back to you soon.


Thanks & Regards,

Vidya


0 Kudos
Gennady_F_Intel
Moderator
2,050 Views

>>most articles might be too old.

Could you point to these articles?

Please show how did you link with mkl?



0 Kudos
Toong
Beginner
2,042 Views

Below are the two articles I searched out. The first one I think is for Linus system. 

https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html

https://software.intel.com/content/www/us/en/develop/articles/quick-linking-intel-mkl-blas-lapack-to-r.html

 

I installed it through GUI.

 

Thanks for taking care of it!

 

 

0 Kudos
Gennady_F_Intel
Moderator
2,039 Views

ok, I see you tried to link with the latest version of MKL. Yes, both of these articles are slightly outdated at this moment and could be updated to show how link against v.2021. You may take a look at the developer guide for mac os (https://software.intel.com/content/www/us/en/develop/documentation/onemkl-macos-developer-guide/top.html) and check the recommended list of mkl's libraries.


0 Kudos
Toong
Beginner
2,027 Views

Thanks! this is way too complicated for me. It would be helpful if you could have a detailed instructions for R users.

0 Kudos
Gennady_F_Intel
Moderator
2,014 Views

this article (https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html) contains the straightforward recommendation

Build R use with Intel MKL

R can be configured to use the Intel® MKL BLAS and LAPACK by using --with-blas. or --with-lapack...



0 Kudos
AbhishekD_Intel
Moderator
1,923 Views

Hi,


Hope the provided details helped you and assuming issue is resolved we are closing this thread.

We will no longer monitor this thread. If you require any additional assistance from Intel, please start a new thread. 

Any further interaction in this thread will be considered community only.


Warm Regards,

Abhishek



0 Kudos
Reply