Skip to main content

CUlaunchAttributeValue

Type Alias CUlaunchAttributeValue 

Source
pub type CUlaunchAttributeValue = CUlaunchAttributeValue_union;
Expand description

Launch attributes union; used as value field of ::CUlaunchAttribute

Aliased Type§

#[repr(C)]
pub union CUlaunchAttributeValue {
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_st

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW.

§cooperative: i32

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_COOPERATIVE. Nonzero indicates a cooperative kernel (see ::cuLaunchCooperativeKernel).

§syncPolicy: CUsynchronizationPolicy_enum

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_SYNCHRONIZATION_POLICY. ::CUsynchronizationPolicy for work queued up in this stream

§clusterDim: CUlaunchAttributeValue_union__bindgen_ty_1

Value of launch attribute ::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_enum

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE. Cluster scheduling policy preference for the kernel.

§programmaticStreamSerializationAllowed: i32

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_STREAM_SERIALIZATION.

§programmaticEvent: CUlaunchAttributeValue_union__bindgen_ty_2

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_PROGRAMMATIC_EVENT with the following fields:

  • CUevent event - Event to fire when all blocks trigger it.
  • Event record flags, see ::cuEventRecordWithFlags. 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_3

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT with the following fields:

  • CUevent event - Event to fire when the last block launches
  • int flags; - Event record flags, see ::cuEventRecordWithFlags. Does not accept ::CU_EVENT_RECORD_EXTERNAL.
§priority: i32

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_PRIORITY. Execution priority of the kernel.

§memSyncDomainMap: CUlaunchMemSyncDomainMap_st

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN_MAP. See ::CUlaunchMemSyncDomainMap.

§memSyncDomain: CUlaunchMemSyncDomain_enum

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN. See::CUlaunchMemSyncDomain

§preferredClusterDim: CUlaunchAttributeValue_union__bindgen_ty_4

Value of launch attribute ::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 the x field of ::CUlaunchAttributeValue::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 the y field of ::CUlaunchAttributeValue::clusterDim.
  • z - The Z dimension of the preferred cluster, in blocks. Must be equal to the z field of ::CUlaunchAttributeValue::clusterDim.
§deviceUpdatableKernelNode: CUlaunchAttributeValue_union__bindgen_ty_5

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE. with the following fields:

  • int deviceUpdatable - Whether or not the resulting kernel node should be device-updatable.
  • CUgraphDeviceNode devNode - Returns a handle to pass to the various device-side update functions.
§sharedMemCarveout: u32

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT.

§nvlinkUtilCentricScheduling: u32

Enables NVLink-utilization-centric scheduling when 1; 0 disables it.

§portableClusterSizeMode: CUlaunchAttributePortableClusterMode_enum

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_PORTABLE_CLUSTER_SIZE_MODE.

§sharedMemoryMode: CUsharedMemoryMode_enum

Value of launch attribute ::CU_LAUNCH_ATTRIBUTE_SHARED_MEMORY_MODE. See ::CUsharedMemoryMode for acceptable values.