| Package | Description |
|---|---|
| org.bytedeco.cuda.global |
| Modifier and Type | Method and Description |
|---|---|
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.cuGreenCtxCreate(CUgreenCtx_st phCtx,
CUdevResourceDesc_st desc,
int dev,
int flags)
\brief Creates a green context with a specified set of resources.
|
static int |
cudart.cuGreenCtxDestroy(CUgreenCtx_st hCtx)
\brief Destroys a green context
Destroys the green context, releasing the primary context of the device that this green context was created for.
|
static int |
cudart.cuGreenCtxGetDevResource(CUgreenCtx_st hCtx,
CUdevResource_st resource,
int type)
\brief Get green context resources
Get the \p type resources available to the green context represented by \p hCtx
|
static int |
cudart.cuGreenCtxRecordEvent(CUgreenCtx_st hCtx,
CUevent_st hEvent)
\brief Records an event.
|
static int |
cudart.cuGreenCtxStreamCreate(CUstream_st phStream,
CUgreenCtx_st greenCtx,
int flags,
int priority)
\brief Create a stream for use in the green context
Creates a stream for use in the specified green context \p greenCtx and returns a handle in \p phStream.
|
static int |
cudart.cuGreenCtxWaitEvent(CUgreenCtx_st hCtx,
CUevent_st hEvent)
\brief Make a green context wait on an event
Makes all future work submitted to green context \p hCtx wait for all work
captured in \p hEvent.
|
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.cuStreamGetGreenCtx(CUstream_st hStream,
CUgreenCtx_st phCtx)
\brief Query the green context associated with a stream
Returns the CUDA green context that the stream is associated with, or NULL if the stream
is not associated with any green context.
|
Copyright © 2025. All rights reserved.