OMPTargetRequested

The source asked for this region to run on a device.

声明

语法

OMPTargetRequested()

参数

无。

返回值

无。

描述

!$omp target is a request to execute a region on a device. Canonicalizing a target construct flattens the target / teams / distribute nest into a single OMPRegion, which would otherwise lose the fact that a device was asked for; this clause keeps it.

The clause records what the source asked for, not what was chosen. The choice is exec_target on the OMPRegion. When a region carrying this clause is not given to a device, the two disagree, and the compiler reports why the request could not be met.

示例

(OMPTargetRequested)

也可以看看

OMPRegion, exec_target, OMPDevice, omp_clause