Article ID: 000057876 Content Type: Error Messages Last Reviewed: 02/09/2023

Error: “Illegal Instruction” when Running the OpenVINO™ Post-training Optimization Toolkit (POT) on Intel Atom® Platforms

Environment

Platform with Intel Atom® Processors N4200 or E3850Ubuntu* 18.04 LTSOpenVINO™ toolkit 2020.4

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Options to resolve "Illegal Instruction" error when running the OpenVINO™ Post-training Optimization Toolkit (POT) on Intel Atom® platform

Description

Unable to use the POT to optimize a Tensorflow (TF) or MXNet model for inference with the OpenVINO™ toolkit on an Intel Atom® platform.

  • Run pot -h.
  • Receive error message: Illegal Instruction exception
Resolution

Choose one of two options:

  1. In most cases, TensorFlow (TF) or MXNet is not needed for POT. Use virtualenv for a clean python environment:

    $ python3 -m pip install virtualenv

    $ python3 -m virtualenv -p `which python3` <directory_for_environment>

  2. If using POT or AccuracyChecker when evaluating a model that uses TF or MXNet as the backend, use the non-AVX version of TF/MXNet. For example, use the conda distribution or compile them from source.

Refer to following links to build from source:

Additional information

Similarly to MXNet, TensorFlow (TF) from pypi is shipped with AVX starting from version 1.6. Intel Atom® E3950 Processor supports SSE instructions and does not support AVX. Therefore, importing TF or MXNet models will cause an illegal instruction error when POT is run in devices without AVX support.

POT itself does not directly depend on either TF or MXNet. POT depends on Model Optimizer and Accuracy Checker, which may depend on TF or MXNet. To minimize this situation, OpenVINO™ toolkit 2021.1 limits the import of TensorFlow to cases where this library is really used, such as when evaluating a model using TF as backend. MXNet is also troublesome for the same scenario, so it is possible to do the same for it.

However, SSE systems, like Intel Atom® platforms, are not used for calibration purposes. It is not recommended to use Intel Atom® platforms for POT quantization.

Related Products

This article applies to 2 products