You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Green-context support in cuda.core (epic #112, closed) predates CUDA 12.8, and _device_resources.pyx
already covers part of the 13.1 additions (SM-resource split via cuDevSmResourceSplit,
workqueue scope enums, backfill flag). This issue tracks the remaining 13.x deltas.
Underlying C APIs to cover
Symbol
Purpose
cuGreenCtxGetId(CUgreenCtx, unsigned long long* greenCtxId) (13.0)
Summary
Green-context support in cuda.core (epic #112, closed) predates CUDA 12.8, and
_device_resources.pyxalready covers part of the 13.1 additions (SM-resource split via
cuDevSmResourceSplit,workqueue scope enums, backfill flag). This issue tracks the remaining 13.x deltas.
Underlying C APIs to cover
cuGreenCtxGetId(CUgreenCtx, unsigned long long* greenCtxId)(13.0)CUdevSmResource.minSmPartitionSize/.smCoscheduledAlignment(13.0),.flags(13.1)cuStreamGetDevResource(CUstream, CUdevResource*, CUdevResourceType)(13.1)CU_DEV_SM_RESOURCE_SPLIT_{IGNORE_SM_COSCHEDULING,MAX_POTENTIAL_CLUSTER_SIZE}(13.1)BACKFILLgroup flag is already used)CU_DEV_SM_RESOURCE_GROUP_DEFAULT(13.1)CUdevWorkqueueResource,CUdevWorkqueueConfigResource,CUdevResource.wq/.wqConfig/.nextResource(13.1)CU_GREEN_CTX_NONE(13.3)cuCtxGetDevice_v2/cuCtxSynchronize_v2(13.0)Design sketch (draft — needs design-meeting review)
Important
Starting point only, not a settled design — review in the cuda.core design meeting.
GreenContext.idproperty (cuGreenCtxGetId).Stream.device_resourcesaccessor (cuStreamGetDevResource).(
ignore_sm_coscheduling=,max_potential_cluster_size=)._v2entry points where semanticsrequire it on 13.x.
Open questions for the meeting:
sharingScope,wqConcurrencyLimit,device) to surface.CUdevSmResourcefields belong on the existing resource wrapper as plainproperties (probably yes; mechanical).
References
-- Leo's bot