| Package | Description |
|---|---|
| org.bytedeco.cuda.cudart | |
| org.bytedeco.cuda.cupti | |
| 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_KERNEL_NODE_PARAMS_v3.ctx()
Context for the kernel task to run in.
|
CUctx_st |
CUDA_KERNEL_NODE_PARAMS_v2.ctx()
Context for the kernel task to run in.
|
CUctx_st |
CUDA_CONDITIONAL_NODE_PARAMS.ctx()
Context on which to run the node.
|
CUctx_st |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2.ctx()
Context to use for the operations.
|
CUctx_st |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v1.ctx() |
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_KERNEL_NODE_PARAMS_v3 |
CUDA_KERNEL_NODE_PARAMS_v3.ctx(CUctx_st setter) |
CUDA_KERNEL_NODE_PARAMS_v2 |
CUDA_KERNEL_NODE_PARAMS_v2.ctx(CUctx_st setter) |
CUDA_CONDITIONAL_NODE_PARAMS |
CUDA_CONDITIONAL_NODE_PARAMS.ctx(CUctx_st setter) |
CUDA_BATCH_MEM_OP_NODE_PARAMS_v2 |
CUDA_BATCH_MEM_OP_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_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 |
|---|---|
CUctx_st |
CUpti_SynchronizeData.context()
The context of the stream being synchronized.
|
CUctx_st |
CUpti_ResourceData.context()
For CUPTI_CBID_RESOURCE_CONTEXT_CREATED and
CUPTI_CBID_RESOURCE_CONTEXT_DESTROY_STARTING, the context being
created or destroyed.
|
CUctx_st |
CUpti_CallbackData.context()
Driver context current to the thread, or null if no context is
current.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CUpti_BuffersCallbackCompleteFunc.call(CUctx_st context,
int streamId,
BytePointer buffer,
long size,
long validSize) |
CUpti_SynchronizeData |
CUpti_SynchronizeData.context(CUctx_st setter) |
CUpti_ResourceData |
CUpti_ResourceData.context(CUctx_st setter) |
CUpti_CallbackData |
CUpti_CallbackData.context(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_v4(CUctx_st pctx,
CUctxCreateParams ctxCreateParams,
int flags,
int dev)
\brief Create a CUDA context
Creates a new CUDA context 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.cuCtxFromGreenCtx(CUctx_st pContext,
CUgreenCtx_st hCtx)
\brief Converts a green context into the primary context
The API converts a green context into the primary context returned in \p pContext.
|
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.cuCtxGetDevResource(CUctx_st hCtx,
CUdevResource_st resource,
int type)
\brief Get context resources
Get the \p type resources available to the context represented by \p hCtx
|
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.cuCtxRecordEvent(CUctx_st hCtx,
CUevent_st hEvent)
\brief Records an event.
|
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.cuCtxWaitEvent(CUctx_st hCtx,
CUevent_st hEvent)
\brief Make a context wait on an event
Makes all future work submitted to context \p hCtx wait for all work
captured in \p hEvent.
|
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 |
cupti.cuptiActivityConfigurePCSampling(CUctx_st ctx,
CUpti_ActivityPCSamplingConfig config)
\brief Set PC sampling configuration.
|
static int |
cupti.cuptiActivityDisableContext(CUctx_st context,
int kind)
\brief Disable collection of a specific kind of activity record for
a context.
|
static int |
cupti.cuptiActivityEnableContext(CUctx_st context,
int kind)
\brief Enable collection of a specific kind of activity record for
a context.
|
static int |
cupti.cuptiActivityFlush(CUctx_st context,
int streamId,
int flag)
\brief Wait for all activity records to be delivered via the
completion callback.
|
static int |
cupti.cuptiActivityGetNumDroppedRecords(CUctx_st context,
int streamId,
SizeTPointer dropped)
\brief Get the number of activity records that were dropped of
insufficient buffer space.
|
static int |
cupti.cuptiDisableKernelReplayMode(CUctx_st context)
\brief Disable kernel replay mode.
|
static int |
cupti.cuptiEnableKernelReplayMode(CUctx_st context)
\brief Enable kernel replay mode.
|
static int |
cupti.cuptiEventGroupCreate(CUctx_st context,
CUpti_EventGroup eventGroup,
int flags)
\brief Create a new event group for a context.
|
static int |
cupti.cuptiEventGroupSetsCreate(CUctx_st context,
long eventIdArraySizeBytes,
int[] eventIdArray,
CUpti_EventGroupSets eventGroupPasses) |
static int |
cupti.cuptiEventGroupSetsCreate(CUctx_st context,
long eventIdArraySizeBytes,
IntPointer eventIdArray,
CUpti_EventGroupSets eventGroupPasses) |
static int |
cupti.cuptiEventGroupSetsCreate(CUctx_st context,
long eventIdArraySizeBytes,
IntPointer eventIdArray,
PointerPointer eventGroupPasses)
\brief For a set of events, get the grouping that indicates the
number of passes and the event groups necessary to collect the
events.
|
static int |
cupti.cuptiGetAutoBoostState(CUctx_st context,
CUpti_ActivityAutoBoostState state)
\brief Get auto boost state
The profiling results can be inconsistent in case auto boost is enabled.
|
static int |
cupti.cuptiGetContextId(CUctx_st context,
int[] contextId) |
static int |
cupti.cuptiGetContextId(CUctx_st context,
IntBuffer contextId) |
static int |
cupti.cuptiGetContextId(CUctx_st context,
IntPointer contextId)
\brief Get the ID of a context.
|
static int |
cupti.cuptiGetDeviceId(CUctx_st context,
int[] deviceId) |
static int |
cupti.cuptiGetDeviceId(CUctx_st context,
IntBuffer deviceId) |
static int |
cupti.cuptiGetDeviceId(CUctx_st context,
IntPointer deviceId)
\brief Get the ID of a device
If \p context is NULL, returns the ID of the device that contains
the currently active context.
|
static int |
cupti.cuptiGetStreamId(CUctx_st context,
CUstream_st stream,
int[] streamId) |
static int |
cupti.cuptiGetStreamId(CUctx_st context,
CUstream_st stream,
IntBuffer streamId) |
static int |
cupti.cuptiGetStreamId(CUctx_st context,
CUstream_st stream,
IntPointer streamId)
\brief Get the ID of a stream.
|
static int |
cupti.cuptiGetStreamIdEx(CUctx_st context,
CUstream_st stream,
byte perThreadStream,
int[] streamId) |
static int |
cupti.cuptiGetStreamIdEx(CUctx_st context,
CUstream_st stream,
byte perThreadStream,
IntBuffer streamId) |
static int |
cupti.cuptiGetStreamIdEx(CUctx_st context,
CUstream_st stream,
byte perThreadStream,
IntPointer streamId)
\brief Get the ID of a stream.
|
static int |
cupti.cuptiMetricCreateEventGroupSets(CUctx_st context,
long metricIdArraySizeBytes,
int[] metricIdArray,
CUpti_EventGroupSets eventGroupPasses) |
static int |
cupti.cuptiMetricCreateEventGroupSets(CUctx_st context,
long metricIdArraySizeBytes,
IntPointer metricIdArray,
CUpti_EventGroupSets eventGroupPasses) |
static int |
cupti.cuptiMetricCreateEventGroupSets(CUctx_st context,
long metricIdArraySizeBytes,
IntPointer metricIdArray,
PointerPointer eventGroupPasses)
\brief For a set of metrics, get the grouping that indicates the
number of passes and the event groups necessary to collect the
events required for those metrics.
|
static int |
cupti.cuptiMetricGetRequiredEventGroupSets(CUctx_st context,
int metric,
CUpti_EventGroupSets eventGroupSets) |
static int |
cupti.cuptiMetricGetRequiredEventGroupSets(CUctx_st context,
int metric,
PointerPointer eventGroupSets)
\brief For a metric get the groups of events that must be collected
in the same pass.
|
static int |
cupti.cuptiSetEventCollectionMode(CUctx_st context,
int mode)
\brief Set the event collection mode.
|
static int |
cudart.cuStreamGetCtx_v2(CUstream_st hStream,
CUctx_st pCtx,
CUgreenCtx_st pGreenCtx)
\brief Query the contexts associated with a stream
Returns the contexts that the stream is associated with.
|
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 © 2025. All rights reserved.