Sanitizer_GraphExecData
-
struct Sanitizer_GraphExecData
传递到 graphexec 创建回调函数中的数据。
作为
cbdata
参数传递到 graphs 回调函数中的数据,用于 Sanitizer_CallbackFunc。cbdata
将是此类型,当domain
等于 SANITIZER_CB_DOMAIN_GRAPHS 且cbid
等于 SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATING 时。回调数据仅在传递数据的回调函数的调用中有效。如果需要在回调外部使用某些数据,则必须复制它。公共成员
-
uint32_t containsDeviceGraphLaunches
布尔值,指示 graphexec 是否可以启动设备 graphs。
仅在驱动程序版本为 535 或更高版本的 SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATED 回调中有效。
-
CUcontext deviceGraphLaunchesContext
graphexec 可以启动设备 graphs 的上下文。
如果 graphExec 不启动设备 graphs,则为 NULL。仅在驱动程序版本为 535 或更高版本的 SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATED 回调中有效。
-
CUgraph graph
正在实例化的 CUDA graph。
-
CUgraphExec graphExec
CUDA graph 的实例。
对于 SANITIZER_CBID_GRAPHS_GRAPHEXEC_CREATING 回调中的设备 graph 启动,可以为 NULL。
-
uint32_t isDeviceLaunch
布尔值,指示 graphexec 是否用于设备 graph 启动。
-
uint32_t containsDeviceGraphLaunches