Intel® C++ Compiler 19.0 Developer Guide and Reference

About Building Native Intel® MIC Architecture Applications

This topic only applies when targeting Intel® Many Integrated Core Architecture (Intel® MIC Architecture).

You can build a binary to run natively on Intel® MIC Architecture, without building one to run on the CPU at all. To do this, include the mmic (Linux*) or Qmic (Windows*) compiler option when you invoke the compiler. You can use the MIC_LIBRARY_PATH environment variable to add additional paths to search for libraries needed to build the native binary.

Note

When you specify Windows* option /Qmic, you must specify any other options on the command line in the Linux* form. This is because all other options are passed directly to the native compiler for Intel® 64 architecture targeting the Intel® MIC architecture, which is a Windows*-hosted Linux* compiler.

When debugging applications for Intel® Xeon Phi™ product family x200 (formerly code name Knights Landing) on Windows*, you should use:

icl /Qmic-avx512 -g

See the related links below for information on setting the compiler environment and the class libraries for Intel® Many Integrated Core (Intel® MIC) Architecture. For information on debugging native Intel® MIC Architecture applications, see the debugger documentation.

See Also