NVCC path support for hipCtxXXX APIs

Change-Id: Ic7dbfbdaee9d00c0de1363c50758e5e29a96a8b2


[ROCm/clr commit: da80bf6326]
This commit is contained in:
Rahul Garg
2016-08-26 14:10:36 +05:30
parent 8e09eacd0b
commit 93e5faf1ce
@@ -509,6 +509,76 @@ inline static hipError_t hipEventQuery(hipEvent_t event)
return hipCUDAErrorTohipError(cudaEventQuery(event));
}
inline static hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
{
return hipCUDAErrorTohipError(cuCtxCreate ( ctx,flags,device ));
}
inline static hipError_t hipCtxDestroy(hipCtx_t ctx)
{
return hipCUDAErrorTohipError(cuCtxDestroy ( ctx ));
}
inline static hipError_t hipCtxPopCurrent(hipCtx_t* ctx)
{
return hipCUDAErrorTohipError(cuCtxPopCurrent ( ctx ));
}
inline static hipError_t hipCtxPushCurrent(hipCtx_t ctx)
{
return hipCUDAErrorTohipError(cuCtxPushCurrent ( ctx ));
}
inline static hipError_t hipCtxSetCurrent(hipCtx_t ctx)
{
return hipCUDAErrorTohipError(cuCtxSetCurrent ( ctx ));
}
inline static hipError_t hipCtxGetCurrent(hipCtx_t* ctx)
{
return hipCUDAErrorTohipError(cuCtxGetCurrent ( ctx ));
}
inline static hipError_t hipCtxGetDevice(hipDevice_t *device)
{
return hipCUDAErrorTohipError(cuCtxGetDevice ( device ));
}
inline static hipError_t hipCtxGetApiVersion (hipCtx_t ctx,int *apiVersion)
{
return hipCUDAErrorTohipError(cuCtxGetApiVersion ( ctx,apiVersion ));
}
inline static hipError_t hipCtxGetCacheConfig ( hipFuncCache *cacheConfig )
{
return hipCUDAErrorTohipError(cuCtxGetCacheConfig ( cacheConfig ));
}
inline static hipError_t hipCtxSetCacheConfig ( hipFuncCache cacheConfig )
{
return hipCUDAErrorTohipError(cuCtxSetCacheConfig ( cacheConfig ));
}
inline static hipError_t hipCtxSetSharedMemConfig ( hipSharedMemConfig config )
{
return hipCUDAErrorTohipError(cuCtxSetSharedMemConfig ( config ));
}
inline static hipError_t hipCtxGetSharedMemConfig ( hipSharedMemConfig * pConfig )
{
return hipCUDAErrorTohipError(cuCtxGetSharedMemConfig ( pConfig ));
}
inline static hipError_t hipCtxSynchronize ( void )
{
return hipCUDAErrorTohipError(cuCtxSynchronize ( void ));
}
inline static hipError_t hipCtxGetFlags ( unsigned int* flags )
{
return hipCUDAErrorTohipError(cuCtxGetFlags ( flags ));
}
#ifdef __cplusplus
}
#endif