- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello.
I downloaded "l_ipp_7.1.1.117_intel64". I installed them. But when i tried to used this library with example from "User's Guide" - "Building your first application" - i had Errors: undefined reference to 'ipplnit', 'ippiGetLibVersion', 'ippGetEnableCpuFeatures'.
I did this in QT qreator 2.6.0. How i could include libraries right?
P.S. Sorry for my poor english and knowlege.
#include "ipp.h"
#include <stdio.h>
int main(int argc, char* argv[])
{
const IppLibraryVersion *lib;
Ipp64u fm;
ippInit();
//Automatic best static dispatch
//ippInitCpu(ippCpuSSSE3);
//Select a specific static library level
//Can be useful for debugging/profiling
//Get version info
lib = ippiGetLibVersion();
printf("%s %s\n", lib->Name, lib->Version);
//Get CPU features enabled with selected library level
fm=ippGetEnabledCpuFeatures();
printf("SSE2 %c\n",(fm>>2)&1?'Y':'N');
printf("SSE3 %c\n",(fm>>3)&1?'Y':'N');
printf("SSSE3 %c\n",(fm>>4)&1?'Y':'N');
printf("SSE41 %c\n",(fm>>6)&1?'Y':'N');
printf("SSE42 %c\n",(fm>>7)&1?'Y':'N');
printf("AVX %c OS Enabled %c\n", (fm>>8)&1 ?'Y':'N', (fm>>9)&1 ?'Y':'N');
printf("AES %c CLMUL %c\n", (fm>>10)&1?'Y':'N', (fm>>11)&1?'Y':'N');
return 0;
}
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The first case requires ippcore library (libippcore*), the second asks for ippi (image processing) library. Try to add all libraries required by functions used. Look at the docs.
Regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you once again, Sergey.
I've finally compiled a test program with the following command:
g++ main.cpp -o main -I /opt/intel/composer_xe_2013.2.146/ipp/include -l ipps_l -l ippi_l -l ippcore_l -L /opt/intel/composer_xe_2013.2.146/ipp/lib/intel64
Does it look correct?
And i still have some qestions:
You told, that it is possible to do the same, using dynamic libraries. How should I rewrite the command to do so?
And also, would it be simplier to use the native intel compiler for the same task? I guess, there should be some kinds of special commands for intel compiler, which would be much simplier to use with ipp? Am I right? And would you be so kind to show me the right usage of it? Or at least, could you give me a link on an Intel compiler user manual? :)
And thank you once again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Oleg,
I cannot say exactly if the command looks correct, because it depends on set of IPP function you use. It's ok for most image processing-related tasks. To link IPP library dynamically you should omit "_l" suffices in library names. Dynamic stub libraries have no suffix. For example, libippcore.a, libipps.a and so on. To start application linked dynamically to IPP you need to set LD_LIBRARY_PATH environment variable so, that it includes IPP dynamic objects directory too. That directory which contains libipp*.so files. According to your architecture of course. Do not mix ia32 and intel64.
Regarding if it is easier to use Intel compiler to build application, I don't know. I am not good in Linux and never had Linux with Intel Composer installed locally. Again, there can be some hints in Composer docs.
Regards,
Sergey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »