pub struct MultiDeviceCooperativeLaunchConfig {
pub per_device: Vec<DeviceLaunchConfig>,
}Expand description
Configuration for a multi-device cooperative kernel launch.
Wraps a collection of DeviceLaunchConfig entries, one per participating
device. All entries must use the same grid and block dimensions.
Fields§
§per_device: Vec<DeviceLaunchConfig>Per-device configurations.
Implementations§
Source§impl MultiDeviceCooperativeLaunchConfig
impl MultiDeviceCooperativeLaunchConfig
Sourcepub fn new(per_device: Vec<DeviceLaunchConfig>) -> CudaResult<Self>
pub fn new(per_device: Vec<DeviceLaunchConfig>) -> CudaResult<Self>
Create a new multi-device configuration from per-device entries.
§Errors
Returns CudaError::InvalidValue if:
- The list is empty.
- Grid or block dimensions differ across devices.
- Any device ordinal is negative.
- Any dimension component is zero.
Sourcepub fn device_count(&self) -> usize
pub fn device_count(&self) -> usize
Number of devices participating in the launch.
Trait Implementations§
Source§impl Clone for MultiDeviceCooperativeLaunchConfig
impl Clone for MultiDeviceCooperativeLaunchConfig
Source§fn clone(&self) -> MultiDeviceCooperativeLaunchConfig
fn clone(&self) -> MultiDeviceCooperativeLaunchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiDeviceCooperativeLaunchConfig
impl RefUnwindSafe for MultiDeviceCooperativeLaunchConfig
impl Send for MultiDeviceCooperativeLaunchConfig
impl Sync for MultiDeviceCooperativeLaunchConfig
impl Unpin for MultiDeviceCooperativeLaunchConfig
impl UnsafeUnpin for MultiDeviceCooperativeLaunchConfig
impl UnwindSafe for MultiDeviceCooperativeLaunchConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more