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 [inherited]
cudaLaunchAttributeValue::@34 cudaLaunchAttributeValue::clusterDim [inherited]

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

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

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

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

enumcudaClusterSchedulingPolicycudaLaunchAttributeValue::clusterSchedulingPolicyPreference [inherited]

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

int cudaLaunchAttributeValue::cooperative [inherited]

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

cudaLaunchAttributeValue::@38 cudaLaunchAttributeValue::deviceUpdatableKernelNode [inherited]

启动属性 cudaLaunchAttributeDeviceUpdatableKernelNode 的值包含以下字段:

  • int deviceUpdatable - 指定生成的内核节点是否应支持设备端更新。

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

cudaLaunchAttributeValue::@37 cudaLaunchAttributeValue::launchCompletionEvent [inherited]

cudaLaunchAttributeLaunchCompletionEvent 启动属性的值,包含以下字段:

cudaLaunchMemSyncDomaincudaLaunchAttributeValue::memSyncDomain [inherited]

launch属性的值 cudaLaunchAttributeMemSyncDomain。请参阅 cudaLaunchMemSyncDomain

struct cudaLaunchMemSyncDomainMapcudaLaunchAttributeValue::memSyncDomainMap [inherited]
cudaLaunchAttributeValue::@36 cudaLaunchAttributeValue::preferredClusterDim [inherited]

表示内核期望的首选集群维度的cudaLaunchAttributePreferredClusterDimension启动属性值。不透明类型包含以下字段:

int cudaLaunchAttributeValue::priority [inherited]

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

cudaLaunchAttributeValue::@35 cudaLaunchAttributeValue::programmaticEvent [inherited]

cudaLaunchAttributeProgrammaticEvent 启动属性的值,包含以下字段:

  • cudaEvent_t event - 当所有块触发时要触发的事件。

  • int flags; - 事件记录标志位,参见 cudaEventRecordWithFlags。不接受 cudaEventRecordExternal

  • int triggerAtBlockStart - 如果设置为非0值,每个块启动时将自动触发事件。

int cudaLaunchAttributeValue::programmaticStreamSerializationAllowed [inherited]
unsigned int cudaLaunchAttributeValue::sharedMemCarveout [inherited]
enum cudaSynchronizationPolicy cudaLaunchAttributeValue::syncPolicy [inherited]

launch属性的值 cudaLaunchAttributeSynchronizationPolicy。用于在此流中排队工作的cudaSynchronizationPolicy。