Context Management
[CUDA Driver API]


Functions

CUresult cuCtxAttach (CUcontext *pctx, unsigned int flags)
 Increment a context's usage-count.
CUresult cuCtxCreate (CUcontext *pctx, unsigned int flags, CUdevice dev)
 Create a CUDA context.
CUresult cuCtxDestroy (CUcontext ctx)
 Destroy the current context or a floating CUDA context.
CUresult cuCtxDetach (CUcontext ctx)
 Decrement a context's usage-count.
CUresult cuCtxGetDevice (CUdevice *device)
 Returns the device ID for the current context.
CUresult cuCtxPopCurrent (CUcontext *pctx)
 Pops the current CUDA context from the current CPU thread.
CUresult cuCtxPushCurrent (CUcontext ctx)
 Pushes a floating context on the current CPU thread.
CUresult cuCtxSynchronize (void)
 Block for a context's tasks to complete.

Detailed Description

This section describes the context management functions of the low-level CUDA driver application programming interface.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA