Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

target

Specifies a target for called functions or variables.

Syntax

Windows:

__declspec(target(target-name))

Linux:

__attribute__((target(target-name)))

Arguments

target-name

Specifies the target name. Possible values are:

  • arch=skylake-avx512

  • arch=corei7

  • arch=core2

  • arch=atom

  • mmx

  • sse

  • sse2

  • sse3

  • ssse3

  • sse4.1

  • sse4.2

  • popcnt

  • aes

  • pclmul

  • avx

  • avx2

  • avx512f

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.