aclrtSynchronizeDevice

Description

Blocks app execution until the compute device has completed all preceding requested tasks.

In the multi-device scenario, the device of the current context is waited.

Prototype

aclError aclrtSynchronizeDevice(void)

Parameters

None

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also