cuCtxCreate: Create a CUDA context

Description Usage Arguments Value References See Also

Description

Creates a new CUDA context and associates it with the calling thread. The flags parameter is described below. The context is created with a usage count of 1 and the caller of cuCtxCreate() must call cuCtxDestroy() or when done using the context. If a context is already current to the thread, it is supplanted by the newly created context and may be restored by a subsequent call to cuCtxPopCurrent().

Usage

1
cuCtxCreate(flags, dev)

Arguments

flags

Context creation flags

dev

Device to create context on

Value

pctx

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html

See Also

cuCtxDestroy cuCtxGetApiVersion cuCtxGetCacheConfig cuCtxGetDevice cuCtxGetLimit cuCtxPopCurrent cuCtxPushCurrent cuCtxSetCacheConfig cuCtxSetLimit cuCtxSynchronize


duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.