Execution Context Management

Execution Context Management#

HIP Runtime API Reference: Execution Context Management
Execution Context Management
Collaboration diagram for Execution Context Management:

Functions

hipError_t hipDeviceGetDevResource (hipDevice_t device, hipDevResource *resource, hipDevResourceType type)
 
hipError_t hipDevSmResourceSplitByCount (hipDevResource *result, unsigned int *nbGroups, const hipDevResource *input, hipDevResource *remainder, unsigned int flags, unsigned int minCount)
 
hipError_t hipDevSmResourceSplit (hipDevResource *result, unsigned int nbGroups, const hipDevResource *input, hipDevResource *remainder, unsigned int flags, hipDevSmResourceGroupParams *groupParams)
 
hipError_t hipDevResourceGenerateDesc (hipDevResourceDesc_t *phDesc, hipDevResource *resources, unsigned int nbResources)
 
hipError_t hipGreenCtxCreate (hipExecutionCtx_t *ctx, hipDevResourceDesc_t desc, int device, unsigned int flags)
 
hipError_t hipExecutionCtxDestroy (hipExecutionCtx_t ctx)
 
hipError_t hipDeviceGetExecutionCtx (hipExecutionCtx_t *ctx, int device)
 
hipError_t hipExecutionCtxStreamCreate (hipStream_t *stream, hipExecutionCtx_t greenctx, unsigned int flags, int priority)
 
hipError_t hipExecutionCtxGetDevResource (hipExecutionCtx_t ctx, hipDevResource *resource, hipDevResourceType type)
 
hipError_t hipExecutionCtxGetDevice (int *device, hipExecutionCtx_t ctx)
 
hipError_t hipExecutionCtxGetId (hipExecutionCtx_t ctx, unsigned long long *ctxId)
 
hipError_t hipStreamGetDevResource (hipStream_t hStream, hipDevResource *resource, hipDevResourceType type)
 
hipError_t hipExecutionCtxRecordEvent (hipExecutionCtx_t ctx, hipEvent_t event)
 
hipError_t hipExecutionCtxSynchronize (hipExecutionCtx_t ctx)
 
hipError_t hipExecutionCtxWaitEvent (hipExecutionCtx_t ctx, hipEvent_t event)
 

Detailed Description



This section describes execution context management functions of HIP runtime API.

Function Documentation

◆ hipDeviceGetDevResource()

hipError_t hipDeviceGetDevResource ( hipDevice_t  device,
hipDevResource resource,
hipDevResourceType  type 
)

◆ hipDeviceGetExecutionCtx()

hipError_t hipDeviceGetExecutionCtx ( hipExecutionCtx_t ctx,
int  device 
)

◆ hipDevResourceGenerateDesc()

hipError_t hipDevResourceGenerateDesc ( hipDevResourceDesc_t phDesc,
hipDevResource resources,
unsigned int  nbResources 
)

◆ hipDevSmResourceSplit()

hipError_t hipDevSmResourceSplit ( hipDevResource result,
unsigned int  nbGroups,
const hipDevResource input,
hipDevResource remainder,
unsigned int  flags,
hipDevSmResourceGroupParams groupParams 
)

◆ hipDevSmResourceSplitByCount()

hipError_t hipDevSmResourceSplitByCount ( hipDevResource result,
unsigned int *  nbGroups,
const hipDevResource input,
hipDevResource remainder,
unsigned int  flags,
unsigned int  minCount 
)

◆ hipExecutionCtxDestroy()

hipError_t hipExecutionCtxDestroy ( hipExecutionCtx_t  ctx)

◆ hipExecutionCtxGetDevice()

hipError_t hipExecutionCtxGetDevice ( int *  device,
hipExecutionCtx_t  ctx 
)

◆ hipExecutionCtxGetDevResource()

hipError_t hipExecutionCtxGetDevResource ( hipExecutionCtx_t  ctx,
hipDevResource resource,
hipDevResourceType  type 
)

◆ hipExecutionCtxGetId()

hipError_t hipExecutionCtxGetId ( hipExecutionCtx_t  ctx,
unsigned long long *  ctxId 
)

◆ hipExecutionCtxRecordEvent()

hipError_t hipExecutionCtxRecordEvent ( hipExecutionCtx_t  ctx,
hipEvent_t  event 
)

◆ hipExecutionCtxStreamCreate()

hipError_t hipExecutionCtxStreamCreate ( hipStream_t stream,
hipExecutionCtx_t  greenctx,
unsigned int  flags,
int  priority 
)

◆ hipExecutionCtxSynchronize()

hipError_t hipExecutionCtxSynchronize ( hipExecutionCtx_t  ctx)

◆ hipExecutionCtxWaitEvent()

hipError_t hipExecutionCtxWaitEvent ( hipExecutionCtx_t  ctx,
hipEvent_t  event 
)

◆ hipGreenCtxCreate()

hipError_t hipGreenCtxCreate ( hipExecutionCtx_t ctx,
hipDevResourceDesc_t  desc,
int  device,
unsigned int  flags 
)

◆ hipStreamGetDevResource()

hipError_t hipStreamGetDevResource ( hipStream_t  hStream,
hipDevResource resource,
hipDevResourceType  type 
)