Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize

Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07
Bu işleme şunda yer alıyor:
Rahul Garg
2016-08-22 16:15:27 +05:30
ebeveyn 4b5b15a8e5
işleme a498753041
5 değiştirilmiş dosya ile 29 ekleme ve 6 silme
+15 -1
Dosyayı Görüntüle
@@ -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);
}