Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Issue Fix: "Illegal Instructions" Error in Intel® IPP Functions

$
0
0

Summary:

Intel® IPP provides optimization code for the Intel® Advanced Vector Extensions 512 (Intel® AVX-512), Intel® Advanced Vector Extensions 2(Intel® AVX2), and Intel® Advanced Vector Extensions (Intel® AVX) instruction sets. To use these instructions sets, explicit operating system support is required to protect the vectorization registers for the applications.

Intel IPP functions dispatch the processor-specific optimized code according to both CPU type and operating system support status. One dispatching problem was identified in the recent IPP releases, and was fixed in the latest IPP 2018 Update 1.1 release. The problems only happen on the following systems:  

  • Using Intel IPP functions on one Intel® AVX-512 processor system, and its OS does not enable Intel® AVX-512 support.   To check if your system OS enables Intel® AVX-512 support, you can build and run the example code attached in the article.
     
  • Using Intel IPP 2018 cryptography functions on one Intel® AVX processor system, and its OS does not enable Intel® AVX/Intel® AVX2 support.  To Enable Intel® AVX/Intel® AVX2 support, it requires:
        Microsoft Windows*:   Windows* 7 with Service Pack 1 (SP1) and Windows* Server 2008 R2 with SP1, or a later version
        Linux:  kernels from 2.6.30 (June 2009) and later.

The Intel(R) IPP functions may report "illegal instructions” errors at the runtime with such problems.

Issue Fix:                       
A new versions of Intel® IPP 2018 Update 1.1 release is available, which includes the fix of the problems.  To get this package:

  1. Login into Intel® Software Development Products Registration Center, as a registered customer.
  2. Select the “Intel® Integrated Performance Primitives” or “Intel® Integrated Performance Primitives Cryptography” production to download the package.

If your applications can not update to Intel® IPP 2018 Update 1.1 or a later version of Intel® IPP,  the workaround is to use the following APIs to manually dispatch the optimization code for your target systems:

  • ippSetCpuFeatures:    Sets the processor-specific library for Intel® IPP package.
  • ippcpSetCpuFeatures: Sets the processor-specific library for Intel® IPP cryptography library 

If you need further help on this problem, please contact the technical support via the Online Service Center web site.


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>