aclrtSynchronizeDevice

Description

Waits for the compute device to finish. This API is synchronous.

Restrictions

Concurrent calls to aclrtSynchronizeDevice in a multithreaded process is not allowed.

Prototype

aclError aclrtSynchronizeDevice(void)

Parameters

None

Returns

0 on success; else, failure.

See Also