pub type CUkernelNodeAttrValue = CUkernelNodeAttrValue_v1;Expand description
Launch attributes union; used as value field of CUlaunchAttribute
Aliased Type§
#[repr(C)]pub union CUkernelNodeAttrValue {
Show 18 fields
pub pad: [i8; 64],
pub accessPolicyWindow: CUaccessPolicyWindow_st,
pub cooperative: i32,
pub syncPolicy: CUsynchronizationPolicy_enum,
pub clusterDim: CUlaunchAttributeValue_union__bindgen_ty_1,
pub clusterSchedulingPolicyPreference: CUclusterSchedulingPolicy_enum,
pub programmaticStreamSerializationAllowed: i32,
pub programmaticEvent: CUlaunchAttributeValue_union__bindgen_ty_2,
pub launchCompletionEvent: CUlaunchAttributeValue_union__bindgen_ty_3,
pub priority: i32,
pub memSyncDomainMap: CUlaunchMemSyncDomainMap_st,
pub memSyncDomain: CUlaunchMemSyncDomain_enum,
pub preferredClusterDim: CUlaunchAttributeValue_union__bindgen_ty_4,
pub deviceUpdatableKernelNode: CUlaunchAttributeValue_union__bindgen_ty_5,
pub sharedMemCarveout: u32,
pub nvlinkUtilCentricScheduling: u32,
pub portableClusterSizeMode: CUlaunchAttributePortableClusterMode_enum,
pub sharedMemoryMode: CUsharedMemoryMode_enum,
}Fields§
§pad: [i8; 64]Pad to 64 bytes
accessPolicyWindow: CUaccessPolicyWindow_stValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW.
cooperative: i32Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_COOPERATIVE.
Nonzero indicates a cooperative kernel (see cuLaunchCooperativeKernel).
syncPolicy: CUsynchronizationPolicy_enumValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY.
CUsynchronizationPolicy for work queued up in this stream.
clusterDim: CUlaunchAttributeValue_union__bindgen_ty_1Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION that represents the desired cluster dimensions for the kernel.
Opaque type with the following fields:
x- The X dimension of the cluster, in blocks. Must be a divisor of the grid X dimension.y- The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension.z- The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension.
clusterSchedulingPolicyPreference: CUclusterSchedulingPolicy_enumValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE.
Cluster scheduling policy preference for the kernel.
programmaticStreamSerializationAllowed: i32Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION.
programmaticEvent: CUlaunchAttributeValue_union__bindgen_ty_2Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields:
CUeventevent - Event to fire when all blocks trigger it.Eventrecord flags, seecuEventRecordWithFlags. Does not accept :CU_EVENT_RECORD_EXTERNAL.triggerAtBlockStart- If this is set to non-0, each block launch will automatically trigger the event.
launchCompletionEvent: CUlaunchAttributeValue_union__bindgen_ty_3Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields:
CUeventevent - Event to fire when the last block launchesintflags; - Event record flags, seecuEventRecordWithFlags. Does not acceptCUevent_record_flags_enum::CU_EVENT_RECORD_EXTERNAL.
priority: i32Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PRIORITY.
Execution priority of the kernel.
memSyncDomainMap: CUlaunchMemSyncDomainMap_stValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP.
memSyncDomain: CUlaunchMemSyncDomain_enumValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN.
See::CUlaunchMemSyncDomain.
preferredClusterDim: CUlaunchAttributeValue_union__bindgen_ty_4Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PREFERRED_CLUSTER_DIMENSION that represents the desired preferred cluster dimensions for the kernel.
Opaque type with the following fields:
x- The X dimension of the preferred cluster, in blocks. Must be a divisor of the grid X dimension, and must be a multiple of thexfield ofCUlaunchAttributeValue::clusterDim.y- The Y dimension of the preferred cluster, in blocks. Must be a divisor of the grid Y dimension, and must be a multiple of theyfield ofCUlaunchAttributeValue::clusterDim.z- The Z dimension of the preferred cluster, in blocks. Must be equal to thezfield ofCUlaunchAttributeValue::clusterDim.
deviceUpdatableKernelNode: CUlaunchAttributeValue_union__bindgen_ty_5Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE.
with the following fields:
intdeviceUpdatable - Whether or not the resulting kernel node should be device-updatable.CUgraphDeviceNodedevNode - Returns a handle to pass to the various device-side update functions.
Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT.
nvlinkUtilCentricScheduling: u32Enables NVLink-utilization-centric scheduling when 1; 0 disables it.
portableClusterSizeMode: CUlaunchAttributePortableClusterMode_enumValue of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE.
Value of launch attribute CUlaunchAttributeID_enum::CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE.
See CUsharedMemoryMode for acceptable values.