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
CUDA 13.1 adds stable identifiers and navigation for graphs and nodes; CUDA 13.3 adds a related
function attribute. None are exposed by cuda.core.graph today.
Motivation: correlating cuda.core graph objects with profiler/tooling output (toolsNodeId),
diagnostics and logging, keying per-node bookkeeping for the update work in #2352 / #2354, and
navigating from a node back to its owning graph.
Summary
CUDA 13.1 adds stable identifiers and navigation for graphs and nodes; CUDA 13.3 adds a related
function attribute. None are exposed by
cuda.core.graphtoday.Motivation: correlating cuda.core graph objects with profiler/tooling output (
toolsNodeId),diagnostics and logging, keying per-node bookkeeping for the update work in #2352 / #2354, and
navigating from a node back to its owning graph.
Underlying C APIs to cover
cuGraphGetId(CUgraph, unsigned int* graphId)cuGraphExecGetId(CUgraphExec, unsigned int* graphId)cuGraphNodeGetLocalId(CUgraphNode, unsigned int* nodeId)cuGraphNodeGetToolsId(CUgraphNode, unsigned long long* toolsNodeId)cuGraphNodeGetContainingGraph(CUgraphNode, CUgraph*)CU_FUNC_ATTRIBUTE_DEVICE_NODE_UPDATE_SUPPORTED(13.3)Design sketch (draft — needs design-meeting review)
Important
Starting point only, not a settled design — review in the cuda.core design meeting.
Read-only properties, no new objects:
.idon the graph-definition and executable-graph wrappers (mapping tocuGraphGetId/cuGraphExecGetIdrespectively);.local_id,.tools_id,.containing_graphon the node wrappers incuda.core.graph;Open questions for the meeting:
CUgraphvsCUgraphExec).intIDs vs. small typed wrappers.containing_graph: return an existing wrapper (identity-cached) or a fresh non-owning one —consistent with
from_handleconstructors need to allow managing ownership #1187 / Inconsistent lifetime management acrossfrom_handle/from_*APIs #1989 lifetime conventions.References
-- Leo's bot