Package | Description |
---|---|
org.bytedeco.cuda.cudart | |
org.bytedeco.cuda.global |
Modifier and Type | Method and Description |
---|---|
CUctx_st |
CUDA_MEMCPY_NODE_PARAMS.copyCtx()
Context on which to run the node
|
CUctx_st |
CUDA_MEMSET_NODE_PARAMS_v2.ctx()
Context on which to run the node
|
CUctx_st |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v1.ctx() |
CUctx_st |
CUDA_CONDITIONAL_NODE_PARAMS.ctx()
Context on which to run the node.
|
CUctx_st |
CUDA_KERNEL_NODE_PARAMS_v2.ctx()
Context for the kernel task to run in.
|
CUctx_st |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2.ctx()
Context to use for the operations.
|
CUctx_st |
CUDA_KERNEL_NODE_PARAMS_v3.ctx()
Context for the kernel task to run in.
|
CUctx_st |
CUDA_MEMCPY3D_PEER_v1.dstContext()
Destination context (ignored with dstMemoryType is ::CU_MEMORYTYPE_ARRAY)
|
CUctx_st |
CUDA_MEMCPY3D_PEER_v1.srcContext()
Source context (ignored with srcMemoryType is ::CU_MEMORYTYPE_ARRAY)
|
Modifier and Type | Method and Description |
---|---|
CUDA_MEMCPY_NODE_PARAMS |
CUDA_MEMCPY_NODE_PARAMS.copyCtx(CUctx_st setter) |
CUDA_MEMSET_NODE_PARAMS_v2 |
CUDA_MEMSET_NODE_PARAMS_v2.ctx(CUctx_st setter) |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v1.ctx(CUctx_st setter) |
CUDA_CONDITIONAL_NODE_PARAMS |
CUDA_CONDITIONAL_NODE_PARAMS.ctx(CUctx_st setter) |
CUDA_KERNEL_NODE_PARAMS_v2 |
CUDA_KERNEL_NODE_PARAMS_v2.ctx(CUctx_st setter) |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2.ctx(CUctx_st setter) |
CUDA_KERNEL_NODE_PARAMS_v3 |
CUDA_KERNEL_NODE_PARAMS_v3.ctx(CUctx_st setter) |
CUDA_MEMCPY3D_PEER_v1 |
CUDA_MEMCPY3D_PEER_v1.dstContext(CUctx_st setter) |
CUDA_MEMCPY3D_PEER_v1 |
CUDA_MEMCPY3D_PEER_v1.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_v3(CUctx_st pctx,
CUexecAffinityParam_v1 paramsArray,
int numParams,
int flags,
int dev)
\brief Create a CUDA context with execution affinity
Creates a new CUDA context with execution affinity and associates it with
the calling thread.
|
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.cuCtxGetId(CUctx_st ctx,
long[] ctxId) |
static int |
cudart.cuCtxGetId(CUctx_st ctx,
LongBuffer ctxId) |
static int |
cudart.cuCtxGetId(CUctx_st ctx,
LongPointer ctxId)
\brief Returns the unique Id associated with the context supplied
Returns in \p ctxId the unique Id which is associated with a given context.
|
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.
|
static int |
cudart.cuGLCtxCreate(CUctx_st pCtx,
int Flags,
int device)
Deprecated.
This function is deprecated as of Cuda 5.0.
This function is deprecated and should no longer be used. It is
no longer necessary to associate a CUDA context with an OpenGL
context in order to achieve maximum interoperability performance.
|
static int |
cudart.cuGraphAddMemcpyNode(CUgraphNode_st phGraphNode,
CUgraph_st hGraph,
CUgraphNode_st dependencies,
long numDependencies,
CUDA_MEMCPY3D_v2 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_v1 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.cuGraphConditionalHandleCreate(long[] pHandle_out,
CUgraph_st hGraph,
CUctx_st ctx,
int defaultLaunchValue,
int flags) |
static int |
cudart.cuGraphConditionalHandleCreate(LongBuffer pHandle_out,
CUgraph_st hGraph,
CUctx_st ctx,
int defaultLaunchValue,
int flags) |
static int |
cudart.cuGraphConditionalHandleCreate(LongPointer pHandle_out,
CUgraph_st hGraph,
CUctx_st ctx,
int defaultLaunchValue,
int flags)
\brief Create a conditional handle
Creates a conditional handle associated with \p hGraph.
|
static int |
cudart.cuGraphExecMemcpyNodeSetParams(CUgraphExec_st hGraphExec,
CUgraphNode_st hNode,
CUDA_MEMCPY3D_v2 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_v1 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.
|
static void |
nvToolsExt.nvtxNameCuContextA(CUctx_st context,
BytePointer name)
\brief Annotates a CUDA context.
|
static void |
nvToolsExt.nvtxNameCuContextA(CUctx_st context,
String name) |
static void |
nvToolsExt.nvtxNameCuContextW(CUctx_st context,
CharPointer name) |
static void |
nvToolsExt.nvtxNameCuContextW(CUctx_st context,
IntPointer name) |
Copyright © 2024. All rights reserved.