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
+15 -1
View File
@@ -216,4 +216,18 @@ hipError_t hipCtxGetSharedMemConfig ( hipSharedMemConfig * pConfig )
*pConfig = hipSharedMemBankSizeFourByte;
return ihipLogStatus(hipSuccess);
}
}
hipError_t hipCtxSynchronize ( void )
{
return ihipSynchronize(); //TODP Shall check validity of ctx?
}
hipError_t hipCtxGetFlags ( unsigned int* flags )
{
hipError_t e = hipSuccess;
ihipCtx_t* tempCtx;
tempCtx = ihipGetTlsDefaultCtx();
*flags = tempCtx->_ctxFlags;
return ihipLogStatus(e);
}