| 148 | |
| 149 | The directory name corresponds to the platform where the samples are built for. |
| 150 | |
| 151 | If you have any problems with installing and/or building the IPP or IPP samples, please read the IPP documentation or contact Intel for support. |
| 152 | |
| 153 | ==== Running "configure" with IPP support ==== |
| 154 | |
| 155 | The {{{configure}}} script needs to be invoked with the appropriate IPP options in order to set up IPP include and library paths. There are three relevant arguments: |
| 156 | |
| 157 | {{{ |
| 158 | --with-ipp=DIR Specify the Intel IPP location |
| 159 | --with-ipp-samples=DIR Specify the Intel IPP samples location |
| 160 | --with-ipp-arch=ARCH Specify the Intel IPP ARCH suffix, e.g. "64" or |
| 161 | "em64t". Default is blank for IA32. |
| 162 | }}} |
| 163 | |
| 164 | |
| 165 | For this tutorial, we'll use two environment variables to hold the location of IPP and IPP samples. |
| 166 | |
| 167 | Sample configure session for Intel IPP 5.3 for IA32 architecture: |
| 168 | {{{ |
| 169 | $ cd /your/pjproject/directory |
| 170 | $ export IPPROOT=/opt/intel/ipp/5.3.1.062/ia32/ |
| 171 | $ export IPPSAMPLES=~/Desktop/ipp-samples |
| 172 | $ ./configure --enable-ipp --with-ipp=$IPPROOT --with-ipp-samples=$IPPSAMPLES |
| 173 | }}} |
| 174 | |
| 175 | Sample configure session for Intel IPP 6.1 for em64t architecture: |
| 176 | {{{ |
| 177 | $ cd /your/pjproject/directory |
| 178 | $ export IPPROOT=/opt/intel/ipp/6.1.2.051/em64t/ |
| 179 | $ export IPPSAMPLES=~/Desktop/opt/intel/ipp-samples |
| 180 | $ ./configure --enable-ipp --with-ipp=$IPPROOT --with-ipp-samples=$IPPSAMPLES --with-ipp-arch=em64t |
| 181 | }}} |
| 182 | |
| 183 | Note that you still need to enable IPP support in your {{{config_site.h}}} in order to use the IPP features. This will be explained in the next section. |
| 184 | |
| 185 | |
| 186 | === Mac OS X Instructions === |
| 187 | |
| 188 | ==== Download and install Intel Compiler and IPP samples ==== |
| 189 | |
| 190 | 1. IPP cannot be obtained separately, you have to install Intel Compiler to get it. |
| 191 | 1. Download Intel Compiler and Intel IPP samples from http://www.intel.com/cd/software/products/asmo-na/eng/302910.htm |
| 192 | 1. Extract the archive to a temporary folder |
| 193 | 1. Run the installer and follow the on screen instructions. The default installation options will install it to ''"/Library/Frameworks"'' directory (e.g. ''"/Library/Frameworks/Intel_IPP.framework/Versions/Current/"'' in my case). |
| 194 | 1. Extract IPP samples to a directory (e.g. to ''"~/Desktop/ipp-samples"''). |
| 195 | |
| 196 | |
| 197 | ==== Build the IPP samples ==== |
| 198 | 1. Go to the directory where IPP samples have been extracted to (e.g. {{{~/Desktop/ipp-samples}}}). |
| 199 | 1. Go to {{{speech-codecs}}} folder. |
| 200 | 1. Open the {{{readme.htm}}} file, and follow the instructions there to build the samples from the source. |
| 201 | - typically you'd just need to execute one of the '''build*.sh''' script after setting the IPPROOT environment variable. |
| 202 | |
| 203 | The build process produces the following: |
| 204 | - (for IPP v5.3) '''{{{libusc.a}}}''' file somewhere under {{{speech-codecs/bin}}} directory. |
| 205 | - (for IPP v6.x) '''{{{libspeech.a}}}''' file somewhere under {{{speech-codecs/_bin}}} directory, e.g. {{{ipp-samples/speech-codecs/_bin/osxem64t_icc111/lib}}} directory. |