| Package | Description |
|---|---|
| org.bytedeco.cuda.cudart | |
| org.bytedeco.cuda.global |
| Modifier and Type | Method and Description |
|---|---|
CUctx_st |
CUDA_MEMCPY3D_PEER.dstContext()
Destination context (ignored with dstMemoryType is ::CU_MEMORYTYPE_ARRAY)
|
CUctx_st |
CUDA_MEMCPY3D_PEER.srcContext()
Source context (ignored with srcMemoryType is ::CU_MEMORYTYPE_ARRAY)
|
| Modifier and Type | Method and Description |
|---|---|
CUDA_MEMCPY3D_PEER |
CUDA_MEMCPY3D_PEER.dstContext(CUctx_st setter) |
CUDA_MEMCPY3D_PEER |
CUDA_MEMCPY3D_PEER.srcContext(CUctx_st setter) |
| Modifier and Type | Method and Description |
|---|---|
static int |
cudart.cuCtxAttach(CUctx_st pctx,
int flags)
Deprecated.
Note that this function is deprecated and should not be used.
Increments the usage count of the context and passes back a context handle
in \p *pctx that must be passed to ::cuCtxDetach() when the application is
done with the context. ::cuCtxAttach() fails if there is no context current
to the thread.
Currently, the \p flags parameter must be 0.
|
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.
Note that this function is deprecated and should not be used.
Decrements the usage count of the context \p ctx, and destroys the context
if the usage count goes to 0. The context must be a handle that was passed
back by ::cuCtxCreate() or ::cuCtxAttach(), and must be current to the
calling thread.
|
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.
|
Copyright © 2019. All rights reserved.