Waits for the compute device to finish. This API is synchronous.
Concurrent calls to aclrtSynchronizeDevice in a multithreaded process is not allowed.
aclError aclrtSynchronizeDevice(void)
None
0 on success; else, failure.