Intel® C++ Compiler 19.0 Developer Guide and Reference

target

Specifies a target for called functions or variables. This attribute only applies to Intel® MIC Architecture.

Syntax

Windows* OS:

__declspec(target(target-name))

Linux* OS:

__attribute__((target(target-name)))

Arguments

target-name

Specifies the target name. Possible values are:

mic: Specifies the target name is Intel® Many Integrated Core Architecture (Intel® MIC Architecture). This value is available on Windows* OS and Linux* OS on Intel® 64 architecture.

Description

This keyword specifies that the called function or variable is also available on the target. Only functions or variables marked with this attribute are available on the target, and only these functions can be called on the target.