Added support for hipCtxSynchronize and hipCtxGetFlags,modified hipDeviceSynchronize

Change-Id: If7bac667a262fa8c0cb3dc93e97f2534855acd07
This commit is contained in:
Rahul Garg
2016-08-22 16:15:27 +05:30
parent 4b5b15a8e5
commit a498753041
5 changed files with 29 additions and 6 deletions
+1
View File
@@ -648,6 +648,7 @@ extern void ihipInit();
extern const char *ihipErrorString(hipError_t);
extern ihipCtx_t *ihipGetTlsDefaultCtx();
extern void ihipSetTlsDefaultCtx(ihipCtx_t *ctx);
extern hipError_t ihipSynchronize(void);
extern ihipDevice_t *ihipGetDevice(int);
ihipCtx_t * ihipGetPrimaryCtx(unsigned deviceIndex);
+5
View File
@@ -1086,6 +1086,11 @@ hipError_t hipCtxSetSharedMemConfig ( hipSharedMemConfig config );
hipError_t hipCtxGetSharedMemConfig ( hipSharedMemConfig * pConfig );
hipError_t hipCtxSynchronize ( void );
hipError_t hipCtxGetFlags ( unsigned int* flags );
// TODO-ctx
/**
* @return hipSuccess, hipErrorInvalidDevice