Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Deleted_U_Intel
Employee
131 Views

How to reduce the size of executable using MKL FFT functions

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
131 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

Naveen_G_Intel
Employee
131 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

SKost
Valued Contributor II
131 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.