Intel® C++ Compiler 16.0 User and Reference Guide

mmic, Qmic

Builds an application that runs natively on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner).

Architecture Restrictions

Only available on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner)

Syntax

Linux:

-mmic

OS X:

None

Windows:

/Qmic

Arguments

None

Default

OFF

The compiler builds a heterogeneous application. You must specify this option to build an application that runs natively on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner).

Description

This option enables the cross compiler to build an application that runs natively on Intel® MIC Architecture. It is only available on the command line.

When you use this option, the compiler defines the macro __MIC__.

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® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner), which is a Windows*-hosted Linux* compiler.

IDE Equivalent

Visual Studio: None

Eclipse: Code Generation > Do a MIC-only Build

Xcode: None

Alternate Options

None

Example

The following option generates the object file a.out, which only runs on Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner):

icc -mmic hello.c

The following shows that when you use option /Qmic, you must specify any other options in Linux form:

icl /Qmic -qopt-report=3 -c example.c

When debugging applications for Intel® 64 architecture targeting the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner) on Windows* systems, you should use:

icl /Qmic -g

See Also