#[repr(C)]pub struct cudaLaunchAttributeValue {Show 19 fields
pub pad: __BindgenUnionField<[c_char; 64]>,
pub accessPolicyWindow: __BindgenUnionField<cudaAccessPolicyWindow>,
pub cooperative: __BindgenUnionField<c_int>,
pub syncPolicy: __BindgenUnionField<cudaSynchronizationPolicy>,
pub clusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_1>,
pub clusterSchedulingPolicyPreference: __BindgenUnionField<cudaClusterSchedulingPolicy>,
pub programmaticStreamSerializationAllowed: __BindgenUnionField<c_int>,
pub programmaticEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_2>,
pub priority: __BindgenUnionField<c_int>,
pub memSyncDomainMap: __BindgenUnionField<cudaLaunchMemSyncDomainMap>,
pub memSyncDomain: __BindgenUnionField<cudaLaunchMemSyncDomain>,
pub preferredClusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_3>,
pub launchCompletionEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_4>,
pub deviceUpdatableKernelNode: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_5>,
pub sharedMemCarveout: __BindgenUnionField<c_uint>,
pub nvlinkUtilCentricScheduling: __BindgenUnionField<c_uint>,
pub portableClusterSizeMode: __BindgenUnionField<cudaLaunchAttributePortableClusterMode>,
pub sharedMemoryMode: __BindgenUnionField<cudaSharedMemoryMode>,
pub bindgen_union_field: [u64; 8],
}Expand description
Launch attributes union; used as value field of ::cudaLaunchAttribute
Fields§
§pad: __BindgenUnionField<[c_char; 64]>Pad to 64 bytes
accessPolicyWindow: __BindgenUnionField<cudaAccessPolicyWindow>Value of launch attribute ::cudaLaunchAttributeAccessPolicyWindow.
cooperative: __BindgenUnionField<c_int>Value of launch attribute ::cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see ::cudaLaunchCooperativeKernel).
syncPolicy: __BindgenUnionField<cudaSynchronizationPolicy>Value of launch attribute ::cudaLaunchAttributeSynchronizationPolicy. ::cudaSynchronizationPolicy for work queued up in this stream.
clusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_1>Value of launch attribute ::cudaLaunchAttributeClusterDimension 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: __BindgenUnionField<cudaClusterSchedulingPolicy>Value of launch attribute ::cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel.
programmaticStreamSerializationAllowed: __BindgenUnionField<c_int>Value of launch attribute ::cudaLaunchAttributeProgrammaticStreamSerialization.
programmaticEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_2>Value of launch attribute ::cudaLaunchAttributeProgrammaticEvent with the following fields:
cudaEvent_tevent - Event to fire when all blocks trigger it.intflags; - Event record flags, see ::cudaEventRecordWithFlags. Does not accept ::cudaEventRecordExternal.inttriggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event.
priority: __BindgenUnionField<c_int>Value of launch attribute ::cudaLaunchAttributePriority. Execution priority of the kernel.
memSyncDomainMap: __BindgenUnionField<cudaLaunchMemSyncDomainMap>Value of launch attribute ::cudaLaunchAttributeMemSyncDomainMap. See ::cudaLaunchMemSyncDomainMap.
memSyncDomain: __BindgenUnionField<cudaLaunchMemSyncDomain>Value of launch attribute ::cudaLaunchAttributeMemSyncDomain. See ::cudaLaunchMemSyncDomain.
preferredClusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_3>Value of launch attribute ::cudaLaunchAttributePreferredClusterDimension 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 of ::cudaLaunchAttributeValue::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 of ::cudaLaunchAttributeValue::clusterDim.z- The Z dimension of the preferred cluster, in blocks. Must be equal to thezfield of ::cudaLaunchAttributeValue::clusterDim.
launchCompletionEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_4>Value of launch attribute ::cudaLaunchAttributeLaunchCompletionEvent with the following fields:
cudaEvent_tevent - Event to fire when the last block launches.intflags - Event record flags, see ::cudaEventRecordWithFlags. Does not accept ::cudaEventRecordExternal.
deviceUpdatableKernelNode: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_5>Value of launch attribute ::cudaLaunchAttributeDeviceUpdatableKernelNode with the following fields:
intdeviceUpdatable - Whether or not the resulting kernel node should be device-updatable.cudaGraphDeviceNode_tdevNode - Returns a handle to pass to the various device-side update functions.
Value of launch attribute ::cudaLaunchAttributePreferredSharedMemoryCarveout.
nvlinkUtilCentricScheduling: __BindgenUnionField<c_uint>Value of launch attribute ::cudaLaunchAttributeNvlinkUtilCentricScheduling.
portableClusterSizeMode: __BindgenUnionField<cudaLaunchAttributePortableClusterMode>Value of launch attribute ::cudaLaunchAttributePortableClusterSizeMode
Value of launch attribute ::cudaLaunchAttributeSharedMemoryMode. See ::cudaSharedMemoryMode for acceptable values.
bindgen_union_field: [u64; 8]Backing storage shared by the members of this bindgen-emulated C union.