Movatterモバイル変換


[0]ホーム

URL:


NVIDIACUDA Toolkit Documentation
Search In:
< Previous |Next >
CUDA Runtime API (PDF) - v13.0.2 (older) - Last updated October 9, 2025 -Send Feedback

7.26. cudaGraphEdgeData Struct Reference

[Data types used by CUDA Runtime]

Optional annotation for edges in a CUDA graph. Note, all edges implicitly have annotations and default to a zero-initialized value if not specified. A zero-initialized struct indicates a standard full serialization of two nodes with memory visibility.

Public Variables

unsigned char  from_port
unsigned char  reserved[5]
unsigned char  to_port
unsigned char  type

Variables

unsigned charcudaGraphEdgeData::from_port [inherited]

This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value of 0 in all cases means full completion of the upstream node, with memory visibility to the downstream node or portion thereof (indicated byto_port). Only kernel nodes define non-zero ports. A kernel node can use the following output port types:cudaGraphKernelNodePortDefault,cudaGraphKernelNodePortProgrammatic, orcudaGraphKernelNodePortLaunchCompletion.

unsigned charcudaGraphEdgeData::reserved[5] [inherited]

These bytes are unused and must be zeroed. This ensures compatibility if additional fields are added in the future.

unsigned charcudaGraphEdgeData::to_port [inherited]

This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated byfrom_port). The meaning is specific to the node type. A value of 0 in all cases means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero.

unsigned charcudaGraphEdgeData::type [inherited]

This should be populated with a value fromcudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) SeecudaGraphDependencyType.



[8]ページ先頭

©2009-2025 Movatter.jp