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
Einsteiger
3.049Aufrufe

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.

Beschriftungen (1)
0 Kudos
5 Antworten
Michaela
Einsteiger
3.018Aufrufe

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!

ArpanB_Intel
Moderator
2.982Aufrufe

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


VarshaS_Intel
Moderator
2.921Aufrufe

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

 

VarshaS_Intel
Moderator
2.886Aufrufe

Hi,


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


Thanks & Regards,

Varsha


VarshaS_Intel
Moderator
2.852Aufrufe

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


Antworten