Modules | |
Context Management [DEPRECATED] | |
Functions | |
CUresult | cuCtxCreate (CUcontext *pctx, unsigned int flags, CUdevice dev) |
Create a CUDA context. | |
CUresult | cuCtxDestroy (CUcontext ctx) |
Destroy a CUDA context. | |
CUresult | cuCtxGetApiVersion (CUcontext ctx, unsigned int *version) |
Gets the context's API version. | |
CUresult | cuCtxGetCacheConfig (CUfunc_cache *pconfig) |
Returns the preferred cache configuration for the current context. | |
CUresult | cuCtxGetCurrent (CUcontext *pctx) |
Returns the CUDA context bound to the calling CPU thread. | |
CUresult | cuCtxGetDevice (CUdevice *device) |
Returns the device ID for the current context. | |
CUresult | cuCtxGetLimit (size_t *pvalue, CUlimit limit) |
Returns resource limits. | |
CUresult | cuCtxPopCurrent (CUcontext *pctx) |
Pops the current CUDA context from the current CPU thread. | |
CUresult | cuCtxPushCurrent (CUcontext ctx) |
Pushes a context on the current CPU thread. | |
CUresult | cuCtxSetCacheConfig (CUfunc_cache config) |
Sets the preferred cache configuration for the current context. | |
CUresult | cuCtxSetCurrent (CUcontext ctx) |
Binds the specified CUDA context to the calling CPU thread. | |
CUresult | cuCtxSetLimit (CUlimit limit, size_t value) |
Set resource limits. | |
CUresult | cuCtxSynchronize (void) |
Block for a context's tasks to complete. |