Skip to main content

cudaLaunchAttributeValue

Struct cudaLaunchAttributeValue 

Source
#[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>§cooperative: __BindgenUnionField<c_int>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeCooperative.

Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel).

§syncPolicy: __BindgenUnionField<cudaSynchronizationPolicy>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeSynchronizationPolicy.

cudaSynchronizationPolicy for work queued up in this stream.

§clusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_1>

Value of launch attribute cudaLaunchAttributeID::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 cudaLaunchAttributeID::cudaLaunchAttributeClusterSchedulingPolicyPreference.

Cluster scheduling policy preference for the kernel.

§programmaticStreamSerializationAllowed: __BindgenUnionField<c_int>§programmaticEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_2>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeProgrammaticEvent with the following fields:

§priority: __BindgenUnionField<c_int>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributePriority.

Execution priority of the kernel.

§memSyncDomainMap: __BindgenUnionField<cudaLaunchMemSyncDomainMap>§memSyncDomain: __BindgenUnionField<cudaLaunchMemSyncDomain>§preferredClusterDim: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_3>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributePreferredClusterDimension that represents the desired preferred cluster dimensions for the kernel.

Opaque type with the following fields:

§launchCompletionEvent: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_4>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeLaunchCompletionEvent with the following fields:

§deviceUpdatableKernelNode: __BindgenUnionField<cudaLaunchAttributeValue__bindgen_ty_5>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeDeviceUpdatableKernelNode with the following fields:

  • int deviceUpdatable - Whether or not the resulting kernel node should be device-updatable.
  • cudaGraphDeviceNode_t devNode - Returns a handle to pass to the various device-side update functions.
§sharedMemCarveout: __BindgenUnionField<c_uint>§nvlinkUtilCentricScheduling: __BindgenUnionField<c_uint>§portableClusterSizeMode: __BindgenUnionField<cudaLaunchAttributePortableClusterMode>§sharedMemoryMode: __BindgenUnionField<cudaSharedMemoryMode>

Value of launch attribute cudaLaunchAttributeID::cudaLaunchAttributeSharedMemoryMode.

See cudaSharedMemoryMode for acceptable values.

§bindgen_union_field: [u64; 8]

Backing storage shared by the members of this bindgen-emulated C union.

Trait Implementations§

Source§

impl Default for cudaLaunchAttributeValue

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.