Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize

Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07


[ROCm/hip commit: a498753041]
This commit is contained in:
Rahul Garg
2016-08-22 16:15:27 +05:30
förälder 2192ebda78
incheckning 5a1cf6ccfd
5 ändrade filer med 29 tillägg och 6 borttagningar
+7
Visa fil
@@ -158,7 +158,14 @@ ihipCtx_t *ihipGetTlsDefaultCtx()
return tls_defaultCtx;
}
hipError_t ihipSynchronize(void)
{
HIP_INIT_API();
ihipGetTlsDefaultCtx()->locked_waitAllStreams(); // ignores non-blocking streams, this waits for all activity to finish.
return ihipLogStatus(hipSuccess);
}
//=================================================================================================
// ihipSignal_t: