CudaContextHandle

struct CudaContextHandle

Wrapper around CUcontext.

Public Functions

CudaDevice device() const

Returns the CudaDevice associated with this context.

inline CUcontext get() const

Returns the underlying CUcontext.

Public Static Functions

static CudaContextHandle current()

Returns the current CUDA context or throws an error if CUDA has not been initialized yet.