Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

How to install Intel IPP on Ubuntu

πŸ“… 2013-Oct-04 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ intel ipp, ubuntu ⬩ πŸ“š Archive

I wanted to try Intel Integrated Performance Primitives (IPP) with OpenCV. I installed IPP with these steps:

  1. Intel IPP can be downloaded from here. If you are using it for non-commercial purposes, you can get it for free through Intel’s Non-Commercial Software Development webpage. You need to register with an email address. You will be sent an email with the download link and a registration key.

  2. Download the Intel IPP version you want, beware that its a huge download. I downloaded Intel IPP 7.1, which ships as a 777MB .tgz file.

  3. Unzip the downloaded .tgz file. Run the install.sh file. You will be asked to enter your registration key.

  4. The installer walks you through the steps of installing IPP. I was asked to install the gcc-multilib package, before I could proceed. So, I did:

$ sudo apt-get install gcc-multilib

By default, the IPP files are installed to /opt/intel/

  1. Going by the steps given on the Intel website, you are supposed to run the ippvars.sh script, which is in the /opt/intel/ipp/bin directory. It sets the following environment variables: IPPROOT, LIBRARY_PATH and LD_LIBRARY_PATH. This script failed to work for me. So, I set those manually in my .bashrc:
# My .bashrc
export IPPROOT=/opt/intel/composer_xe_2013.1.117/ipp
export LIBRARY_PATH=$LIBRARY_PATH:/opt/intel/composer_xe_2013.1.117/ipp/lib/intel64:/opt/intel/composer_xe_2013.1.117/compiler/lib/intel64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013.1.117/ipp/lib/intel64:/opt/intel/composer_xe_2013.1.117/compiler/lib/intel64

After this, I was able to use Intel IPP to compile OpenCV successfully as explained here.

Tried with: Intel IPP 7.1 and Ubuntu 12.04 LTS


Β© 2022 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 @codeyarns@hachyderm.io β€’ πŸ“§