static int |
cudart.cuCtxAttach(CUctx_st pctx,
int flags) |
Deprecated.
|
static int |
cudart.cuCtxCreate(CUctx_st pctx,
int flags,
int dev) |
\brief Create a CUDA context
\note In most cases it is recommended to use ::cuDevicePrimaryCtxRetain.
|
static int |
cudart.cuCtxDestroy(CUctx_st ctx) |
\brief Destroy a CUDA context
Destroys the CUDA context specified by \p ctx.
|
static int |
cudart.cuCtxDetach(CUctx_st ctx) |
Deprecated.
|
static int |
cudart.cuCtxDisablePeerAccess(CUctx_st peerContext) |
\brief Disables direct access to memory allocations in a peer context and
unregisters any registered allocations.
|
static int |
cudart.cuCtxEnablePeerAccess(CUctx_st peerContext,
int Flags) |
\brief Enables direct access to memory allocations in a peer context.
|
static int |
cudart.cuCtxGetApiVersion(CUctx_st ctx,
int[] version) |
|
static int |
cudart.cuCtxGetApiVersion(CUctx_st ctx,
IntBuffer version) |
|
static int |
cudart.cuCtxGetApiVersion(CUctx_st ctx,
IntPointer version) |
\brief Gets the context's API version.
|
static int |
cudart.cuCtxGetCurrent(CUctx_st pctx) |
\brief Returns the CUDA context bound to the calling CPU thread.
|
static int |
cudart.cuCtxPopCurrent(CUctx_st pctx) |
\brief Pops the current CUDA context from the current CPU thread.
|
static int |
cudart.cuCtxPushCurrent(CUctx_st ctx) |
\brief Pushes a context on the current CPU thread
Pushes the given context \p ctx onto the CPU thread's stack of current
contexts.
|
static int |
cudart.cuCtxSetCurrent(CUctx_st ctx) |
\brief Binds the specified CUDA context to the calling CPU thread
Binds the specified CUDA context to the calling CPU thread.
|
static int |
cudart.cuDevicePrimaryCtxRetain(CUctx_st pctx,
int dev) |
\brief Retain the primary context on the GPU
Retains the primary context on the device, creating it if necessary,
increasing its usage count.
|
static int |
cudart.cuGraphAddMemcpyNode(CUgraphNode_st phGraphNode,
CUgraph_st hGraph,
CUgraphNode_st dependencies,
long numDependencies,
CUDA_MEMCPY3D copyParams,
CUctx_st ctx) |
\brief Creates a memcpy node and adds it to a graph
Creates a new memcpy node and adds it to \p hGraph with \p numDependencies
dependencies specified via \p dependencies.
|
static int |
cudart.cuGraphAddMemsetNode(CUgraphNode_st phGraphNode,
CUgraph_st hGraph,
CUgraphNode_st dependencies,
long numDependencies,
CUDA_MEMSET_NODE_PARAMS memsetParams,
CUctx_st ctx) |
\brief Creates a memset node and adds it to a graph
Creates a new memset node and adds it to \p hGraph with \p numDependencies
dependencies specified via \p dependencies.
|
static int |
cudart.cuGraphExecMemcpyNodeSetParams(CUgraphExec_st hGraphExec,
CUgraphNode_st hNode,
CUDA_MEMCPY3D copyParams,
CUctx_st ctx) |
\brief Sets the parameters for a memcpy node in the given graphExec.
|
static int |
cudart.cuGraphExecMemsetNodeSetParams(CUgraphExec_st hGraphExec,
CUgraphNode_st hNode,
CUDA_MEMSET_NODE_PARAMS memsetParams,
CUctx_st ctx) |
\brief Sets the parameters for a memset node in the given graphExec.
|
static int |
cudart.cuMemcpyPeer(long dstDevice,
CUctx_st dstContext,
long srcDevice,
CUctx_st srcContext,
long ByteCount) |
\brief Copies device memory between two contexts
Copies from device memory in one context to device memory in another
context.
|
static int |
cudart.cuMemcpyPeerAsync(long dstDevice,
CUctx_st dstContext,
long srcDevice,
CUctx_st srcContext,
long ByteCount,
CUstream_st hStream) |
\brief Copies device memory between two contexts asynchronously.
|
static int |
cudart.cuStreamGetCtx(CUstream_st hStream,
CUctx_st pctx) |
\brief Query the context associated with a stream
Returns the CUDA context that the stream is associated with.
|