Visible to Intel only — GUID: GUID-10CC9425-36D7-40CF-B7B2-E6E02B4E85AC
Visible to Intel only — GUID: GUID-10CC9425-36D7-40CF-B7B2-E6E02B4E85AC
DEVICE_TYPE Clause
Parallel Directive Clause: Specifies whether a version of a procedure or a copy of a data entity is to be available on a HOST device, a non-HOST device, or both. This feature is only available for ifx.
Syntax
DEVICE_TYPE (device)
device |
Is HOST, NOHOST, or ANY. |
The DEVICE_TYPE clause specifies whether a variable, COMMON block, or procedure is to be made available on a HOST device, a non-HOST device, or both device types.
If HOST is specified, only a HOST version of the data or procedure is available. At this time, ifx will produce an error if HOST is specified because there is only support for device compilation.
NOHOST indicates that only a device version of the data or procedure is made available.
ANY specifies that both a device and a host version of the data or procedure are made available. At this time, specifying ANY results in a warning that only device compilation is supported.
If a directive that accepts a DEVICE_TYPE clause does not specify the DEVICE_TYPE clause, the behavior is as if DEVICE_TYPE (ANY) had appeared.