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

How to use MKL Nuget package?

Michaela
Beginner
959 Views

I’m confused about how you’re meant to use the Intel Nuget packages. I’m trying to include MKL in a c# .NET  Standard library project.

I assume that the Nuget package just includes the unmanaged dlls and I’m meant to do a DLLImport for any functions I want to access. The problem is, the Nuget package installs in my user directory, the dlls don’t seem to copy to the bin directory, and I don’t actually know which of the myriad of dlls I need to use, because there isn’t one called mkl.dll 

 

The documentation describes how to use the dlls in a c# project, but I wasn’t able to figure out how to use the Nuget packages from that information.

Labels (1)
0 Kudos
5 Replies
Michaela
Beginner
928 Views

I’ve made a bit more progress. If I include my .NET Standard project into a .NET 6 test project, the dlls appear in /runtimes/win-x64/native. The dll I wanted seems to be called mkl_rt.2.dll.

Even though the packages don’t indicate a dependency on any particular .NET version, they won’t install into a .NET 4.8 project and if I include my .NET Standard project into a .NET 4.8 project, the dlls don’t get copied to the output and you get a dll not found error.

 

Also, the /native folder is over 500MB, and that’s only the 64bit version!

0 Kudos
ArpanB_Intel
Moderator
892 Views

Hi Michaela, we will move the issue to the relevant forum for further support.


0 Kudos
VarshaS_Intel
Moderator
831 Views

Hi Michaela,

 

Thank you for posting in the Intel Communities. 

 

Could you please let us know the versions of Intel MKL and Microsoft Visual Studio(if you are using them) along with the sub-versions you are using?

 

Could you please give us the complete reproducer code and complete steps you have followed to reproduce the issue at our end?

 

And also, could you please refer to this link for the compatible target?

 

Thanks & Regards,

Varsha

 

0 Kudos
VarshaS_Intel
Moderator
796 Views

Hi,


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


Thanks & Regards,

Varsha


0 Kudos
VarshaS_Intel
Moderator
762 Views

Hi Michaela,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need additional information, please start a new thread.


Thanks & Regards,

Varsha


0 Kudos
Reply