Basic query regarding IPP: how to write, execute and run code using ipp

Basic query regarding IPP: how to write, execute and run code using ipp

Hi Sir,

I'm from Walchand College of Engineering, Sangli, India. Our college has procured Intel Cluster Toolkit.

We have started working on this toolkit. But we are not getting how to open GUI of IPP, how to use functions in it.

Please help us.

10 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

There are lots of documents on Intel web site dedicated to development with IPP library. Take a look at a 46-page Intel® Integrated Performance Primitives for Windows* OS User's Guide for IPP 7.1. The document describes IPP fundamentals and what you need to know.

By the way, what platform ( operating system ) and IDE ( Integrated Development Environment ) do you use?

Please take a look at these links:

software.intel.com/en-us/articles/intel-integrated-performance-primitives-faq
software.intel.com/en-us/articles/intel-integrated-performance-primitives-documentation
software.intel.com/en-us/articles/intel-ipp-71-library-release-notes

IPP knowledge base
software.intel.com/en-us/articles/intel-ipp-kb/all
software.intel.com/en-us/articles/intel-ipp-70-library-install-guide

IPP code samples
software.intel.com/en-us/articles/code-samples-for-intel-integrated-performance-primitives-intel-ipp-library-71
software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples

In PDF format
software.intel.com/en-us/articles/ipp-crypto-guide
software.intel.com/en-us/articles/download-ipp-cryptography-libraries
software.intel.com/en-us/articles/boosting-cryptography-performance-with-intel-libraries
software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-understanding-cpu-optimized-code-used-in-intel-ipp
software.intel.com/en-us/articles/threading-and-intel-integrated-performance-primitives

Hi Sir,

Thank you very much for your reply. We are working on linux platform.

Now we can excute ./icc in bin of ipp. but we get erro ipp.h not found. We are novice in this area. please suggest us how to proceed. meanwhile we will keep trying and checking links given above.

Thanks & Regards,

Pranali Sheth

>>...we get error ipp.h not found...

You have a problem with a search path to [ IPP_INSTALL_DIR ]/Include directory and you need to set an environment variable PATH on your platform.

Hi Pranali,

Welcome to IPP forum! In terms of usage, IPP is just the same as other binary libraries on Linux, Windows, OS X, whatever. Please, make sure that "-I<dir>" option (capital "i") in icc commmand line points to <your IPP installation dir>/include directory. For example, "-I/opt/intel/composer_xe_2013.0.079/ipp/include".

The same for linking phase. "-L<dir>" should point to IPP binary libraries location according to 32/64-bit mode you want to use. For example, "-L/opt/intel/composer_xe_2013.0.079/ipp/lib/intel64".

Keep asking :). Don't forget to set LD_LIBRARY_PATH env. variable if you link to dynamic libraries.
Regards,
Sergey 

Regards,
Sergey

Hi Sergey,

Thanks a lot!!! I have executed basic program successfully :)

Please give me hint how can I read Image. Is it necessary to use OpenCV to view image.

I want to compute histogram of an image and then want apply mask on it.

Image Processing domain of IPP library has a set of functions to compute a histogram of an image and take a look at:

ippiHistogramRange_xx_xxx
ippiHistogramEven_xx_xxx

functions.

Hi Pranali,

There are no IPP functions to read images. You can use any of open source libraries (including OpenCV). For further usage of IPP functions you need to know pointer to image memory buffer, image format (number of channels, pixel witdth) and distance in bytes between consecutive image lines. Usually, it is equal to image_width * image_channels * sizeof(image_pixel), but may vary if padding exists. Almost all image reading/writing libs contain something like "step" (or, "pitch") arguments or return values.

Regards,
Sergey 

Regards,
Sergey

>>...Is it necessary to use OpenCV to view image...

In order to display and view image some OS dependent API needs to be used ( Linux GUI API in your case or OpenGL ). OpenCV allows to read image data into memory for processing.

I'd like to stress that IPP is Not designed to read images ( Sergey Khlystov already mentioned it in the previous post ) because there are too many formats (!) and IPP functions do processing on raw data loaded into memory from the image of some format ( using OpenCV, for example ).

Take a look at the following tools and APIs:

ImageJ ( Helper tool / Java language based )

ExifTool ( Helper tool / Reads metadata / tags from image header ) - owl.phy.queensu.ca/~phil/exiftool

ImageMagick ( Helper tool / Provides API ) - www.imagemagick.org

发表评论

登录添加评论。还不是成员?立即加入