HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

13.1  device_type Clause

Name: device_type

Properties: unique

Arguments

Name

Type

Properties

device-type-description

Keyword: any, host, nohost

default

Directives

begin declare target

,

declare target

Semantics

The device_type clause specifies if a version of the procedure or variable should be made available on the host device, non-host devices or both the host device and non-host devices. If host is specified then only a host device version of the procedure or variable is made available. If any is specified then both host device and non-host device versions of the procedure or variable are made available. If nohost is specified for a procedure then only non-host device versions of the procedure are made available. If nohost is specified for a variable then that variable is not available on the host device. If the device_type clause is not specified, the behavior is as if the device_type clause appears with any specified.

Cross References