Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize

Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07


[ROCm/clr commit: b0ba622ed5]
This commit is contained in:
Rahul Garg
2016-08-22 16:15:27 +05:30
parent ab47c624ec
commit f1f04949ac
5 changed files with 29 additions and 6 deletions
+1 -5
View File
@@ -160,11 +160,7 @@ hipError_t hipSetDevice(int deviceId)
*/
hipError_t hipDeviceSynchronize(void)
{
HIP_INIT_API();
ihipGetTlsDefaultCtx()->locked_waitAllStreams(); // ignores non-blocking streams, this waits for all activity to finish.
return ihipLogStatus(hipSuccess);
return ihipSynchronize();
}