7.40. cudaLaunchAttributeValue 联合引用

[CUDA 运行时使用的数据类型]

启动属性联合;用作 cudaLaunchAttribute 的值字段

公共变量

struct cudaAccessPolicyWindow accessPolicyWindow
cudaLaunchAttributeValue::@34  clusterDim
enumcudaClusterSchedulingPolicy clusterSchedulingPolicyPreference
int  cooperative
cudaLaunchAttributeValue::@38  deviceUpdatableKernelNode
cudaLaunchAttributeValue::@37  launchCompletionEvent
cudaLaunchMemSyncDomain memSyncDomain
struct cudaLaunchMemSyncDomainMap memSyncDomainMap
cudaLaunchAttributeValue::@36  preferredClusterDim
int  priority
cudaLaunchAttributeValue::@35  programmaticEvent
int  programmaticStreamSerializationAllowed
unsigned int  sharedMemCarveout
enum cudaSynchronizationPolicy  syncPolicy

变量

struct cudaAccessPolicyWindowcudaLaunchAttributeValue::accessPolicyWindow [继承]

启动属性 cudaLaunchAttributeAccessPolicyWindow 的值。

cudaLaunchAttributeValue::@34 cudaLaunchAttributeValue::clusterDim [继承]

启动属性 cudaLaunchAttributeClusterDimension 的值,表示内核所需的集群维度。具有以下字段的不透明类型

  • x- 集群的 X 维度,以块为单位。必须是网格 X 维度的除数。

  • y- 集群的 Y 维度,以块为单位。必须是网格 Y 维度的除数。

  • z- 集群的 Z 维度,以块为单位。必须是网格 Z 维度的除数。

enumcudaClusterSchedulingPolicycudaLaunchAttributeValue::clusterSchedulingPolicyPreference [继承]

启动属性 cudaLaunchAttributeClusterSchedulingPolicyPreference 的值。内核的集群调度策略偏好。

int cudaLaunchAttributeValue::cooperative [继承]

启动属性 cudaLaunchAttributeCooperative 的值。非零值表示协作内核(参见 cudaLaunchCooperativeKernel)。

cudaLaunchAttributeValue::@38 cudaLaunchAttributeValue::deviceUpdatableKernelNode [继承]

启动属性 cudaLaunchAttributeDeviceUpdatableKernelNode 的值,具有以下字段

  • intdeviceUpdatable - 结果内核节点是否应为设备可更新。

  • cudaGraphDeviceNode_tdevNode - 返回一个句柄,用于传递给各种设备端更新函数。

cudaLaunchAttributeValue::@37 cudaLaunchAttributeValue::launchCompletionEvent [继承]

启动属性 cudaLaunchAttributeLaunchCompletionEvent 的值,具有以下字段

cudaLaunchMemSyncDomaincudaLaunchAttributeValue::memSyncDomain [继承]
struct cudaLaunchMemSyncDomainMapcudaLaunchAttributeValue::memSyncDomainMap [继承]
cudaLaunchAttributeValue::@36 cudaLaunchAttributeValue::preferredClusterDim [继承]

启动属性 cudaLaunchAttributePreferredClusterDimension 的值,表示内核所需的首选集群维度。具有以下字段的不透明类型

int cudaLaunchAttributeValue::priority [继承]

启动属性 cudaLaunchAttributePriority 的值。内核的执行优先级。

cudaLaunchAttributeValue::@35 cudaLaunchAttributeValue::programmaticEvent [继承]

启动属性 cudaLaunchAttributeProgrammaticEvent 的值,具有以下字段

  • cudaEvent_tevent - 当所有块触发时触发的事件。

  • intflags; - 事件记录标志,请参阅 cudaEventRecordWithFlags。不接受 cudaEventRecordExternal

  • inttriggerAtBlockStart - 如果设置为非 0,则每个块启动将自动触发事件。

int cudaLaunchAttributeValue::programmaticStreamSerializationAllowed [继承]
unsigned int cudaLaunchAttributeValue::sharedMemCarveout [继承]
enum cudaSynchronizationPolicy cudaLaunchAttributeValue::syncPolicy [继承]

启动属性 cudaLaunchAttributeSynchronizationPolicy 的值。此流中排队的工作的 cudaSynchronizationPolicy。