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

How to reduce the size of executable using MKL FFT functions

Deleted_U_Intel
Employee
1,084 Views
How do I reduce the software bloat resulting from MKL? I am using the FFT functions (DFTI_...) and statically link using Visual Studio 10. My old MKL library gave me an exe of 400KB but using MKL 10.3 I get an exec file of 25 MB. This is far too big for internet distribution.
How do I only link the MKL functions I actually use?
Any help would be most gratefully received.
0 Kudos
3 Replies
Naveen_G_Intel
Employee
1,083 Views

Hi Stuart Ray,

As you mentioned, you are using static libraries.

MKL static libraries from which custom libraryis built currently contain all supported CPU-codes. Therefore they are so big in size.
What type of precisions you are looking for DFT transforms?

Do you need both single and double precision DFT transforms?
In case of one precision, you can reduce DLL size by selecting correct names in export list. See comments in DFT example list.

Regards,

Naveen Gv

0 Kudos
Naveen_G_Intel
Employee
1,083 Views

Hi Stuart,

Regarding Static linking issue, how you are linking? Better to use Intel Link line advisor

You can use method described in the userguide to build Custom DLL Builder.

Let us know how it works.....

Regards,

Naveen Gv

0 Kudos
SergeyKostrov
Valued Contributor II
1,083 Views
Quoting Stuart Ray
...
I would prefer static linking but my attempt to build with libia32 gave "fatal error LNK1131: no library file specified". Have I missed something?
...


It happened because there is no a library you've selectedin a list of 'Additional Dependencies' of the 'Linker->Input' settings.

0 Kudos
Reply