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

some issues when building custom mkl dlls

Lane120
Beginner
1,376 Views

Hello

 

As the mkl library's size is too large, I want to find a way to reduce its size and then include it into my application.

I searched previous articles, and found I can try to build a custom dll following Using the Custom Dynamic-link Library Builder in the Command-line Mode (intel.com)

however, there are some issues:

 

1. whenever I set Parallel to intel or tbb, the result is the same

Lane120_0-1700276912399.png

the generated mkl_custom.dll has the same size and the last link commands seem no difference

Lane120_1-1700277023544.png

and seems always link to openmp?

 

2.  when I set interface to ilp64(according to LP64 interface or ILP64 interface library, which one should I link with? - Intel Community)

the library size reduced from 118MB to 85MB,  which looks like exciting to me, 

however, the eigen solver with Pardiso doesn't work

(Eigen::PardisoLLT compute 's result is always 3 (Eigen::ComputationInfo::InvalidInput))

 

3. I use following command to build

 

nmake libintel64 interface=lp64 cluster=no uwd_compat=yes threading=parallel prallel=tbb export=user_example_list

 

and only includes following functions in user_example_list

pardiso
feastinit
dfeast_scsrev

 

the generated dll size still has 118MB, is there any suggestion to reduce more dll size?

 

thanks very much

 

0 Kudos
4 Replies
JilaniS_Intel
Employee
1,305 Views

Hi,

 

 

Thanks for posting in Intel communities.

 

We tried to generate the custom dll at our end, and we are getting the following results.

 

command : nmake libintel64 interface=lp64 cluster=no uwd_compat=yes threading=parallel prallel=tbb export=user_example_list

Interface = lp64

Functions : pardiso, feastinit , dfeast_scsrev

Custom DLL size : 115 MB

 

 

command : nmake libintel64 interface=ilp64 cluster=no uwd_compat=yes threading=parallel prallel=tbb export=user_example_list

interface = ilp64

Functions : pardiso, feastinit , dfeast_scsrev

Custom DLL size : 83 MB

 

>>  when I set interface to ilp64  the library size reduced from 118MB to 85MB,  which looks like exciting to me, 

however, the eigen solver with Pardiso doesn't work

Could you please provide us a sample reproducer and OS details, so that we can replicate and investigate more at our end.

 

 

Regards,

Jilani

 

0 Kudos
JilaniS_Intel
Employee
1,230 Views

Hi ,

 

Sorry for the late and edit reply.

>> the generated dll size still has 118MB, is there any suggestion to reduce more dll size?
The size of the custom DLL is 115 MB as expected for the interface=lp64.


>> when I set interface to ilp64 the library size reduced from 118MB to 85MB, which looks like exciting to me,

however, the eigen solver with Pardiso doesn't work

Could you please provide us a sample reproducer and OS details, so that we can replicate and investigate more at our end.
The information would be helpful to understanding of the issue deeply.

 

 

Regards,

Jilani

 

0 Kudos
JilaniS_Intel
Employee
1,151 Views

Hi,



A gentle reminder:


Could you kindly share a sample reproducer along with the details of the OS? This will enable us to replicate and conduct a more thorough investigation on our end. 



Regards,

Jilani


0 Kudos
JilaniS_Intel
Employee
1,093 Views

Hi,



A gentle reminder:


Could you kindly share a sample reproducer along with the details of the OS? This will enable us to replicate and conduct a more thorough investigation on our end. 



Regards,

Jilani


0 Kudos
Reply