Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6684 Discussions

IPP .so libraries naming logic and how to pick them



I'm currently using IPP (2017) on Linux, so far it behaves relatively well, but there is something that remains cryptic to me:

How do I determine which library to link based on the current configuration?

Right now I have this installed:

libippcc.a    libippcore.a    libippcore_tl.a    libippcv.a    libippi.a     libippvm.a
libippch.a    libippdc.a       libippi_tl.a    libipps.a

Naively, I first linked all of them, using a bunch of flags in that vein:

-lippcce9 -lippchn8 -lippchmx -lippcc -lippvml9 -lippsy8 -lippcvk0 -lippie9 -lippchm7 -lippimx -lippvme9 -lippchl9 -lippcvk0 -lippcve9 -lippvmk0 -lippdcmx -lippchk0 -lippsmx -lippin8 -lippdc -lippiy8 -lippin0 -lippil9 -lippccy8 -lippik0 -lippse9 -lippcore -lippcvn8 -lippdcl9 -lippcc -lipps -lippsm7 -lippccl9 -lippdce9 -lippchn0 -lippcv -lippdck0 -lippcvm7 -lippdcm7 -lippim7 -lippsn0 -lippvmn8 -lippdcn0 -lippcck0 -lippccn8 -lippccm7 -lippvmn0 -lippvmm7 -lippvmy8 -lippcvmx -lippvm -lippcvn0 -lippcvl9 -lippche9 -lippvmmx -lippch -lippsl9 -lippccn0 -lippi -lippcvy8 -lippsk0 -lippchy8 -lippsn8 -lippdcn8 -lippdcy8

Things were going well, until I got an "Illegal Instruction" error at runtime terminating the program.

I tried compiling it in debug mode and running it using gdb, this led me to locate the error in, it happened when I tried to use some Gaussian Filter init function.

Worried, I tried running the same program compiled with the same flags on another machine (still an Intel processor), I still got an Illegal Instruction error but only upon calling another ipp function further during the execution, the init function went apparently well but effectively applying this gaussian filter on an image made the whole thing crash.

At this stage, I made some hypothesis: not every library in the bunch is always required and the choice of which one to pick depends on what processor you have (or at least what instruction set) which makes sense since it's all about low-level performance.

I removed the -lippcvk0 flag in the hope those functions would be implemented elsewhere and it worked on my computer, no illegal instruction, I can successfully filter images.

Knowing all that, I still cannot tell why was not the chosen one (and some other .so was), what is the meaning behind each library name anyway ?

In the case of, "ipp" is self explanatory, "cv" may stands for "computer vision" (I guess), but what about the "k0" ?

Also, what about,,,,,, or ?

Thank you for your time.

0 Kudos
1 Solution
2 Replies

Wow, that's the exact kind of information I was looking for, the keyword there was "dispatcher".

Thanks :)

0 Kudos