pub struct DeviceLaunchConfig {
pub device_ordinal: i32,
pub function: CUfunction,
pub grid_dim: (u32, u32, u32),
pub block_dim: (u32, u32, u32),
pub shared_mem_bytes: u32,
pub stream: CUstream,
pub args: Vec<*mut c_void>,
}Expand description
Per-device configuration for a multi-device cooperative launch.
Each entry describes one device’s contribution to the cooperative kernel. All entries in a multi-device launch must use identical grid and block dimensions.
Fields§
§device_ordinal: i32Device ordinal (0-based).
function: CUfunctionRaw CUDA function handle for this device’s kernel.
grid_dim: (u32, u32, u32)Grid dimensions (x, y, z) in blocks.
block_dim: (u32, u32, u32)Block dimensions (x, y, z) in threads.
Dynamic shared memory in bytes.
stream: CUstreamStream handle for this device.
args: Vec<*mut c_void>Kernel arguments (pointers to argument values).
Implementations§
Trait Implementations§
Source§impl Clone for DeviceLaunchConfig
impl Clone for DeviceLaunchConfig
Source§fn clone(&self) -> DeviceLaunchConfig
fn clone(&self) -> DeviceLaunchConfig
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 moreSource§impl Debug for DeviceLaunchConfig
impl Debug for DeviceLaunchConfig
impl Send for DeviceLaunchConfig
impl Sync for DeviceLaunchConfig
Auto Trait Implementations§
impl Freeze for DeviceLaunchConfig
impl RefUnwindSafe for DeviceLaunchConfig
impl Unpin for DeviceLaunchConfig
impl UnsafeUnpin for DeviceLaunchConfig
impl UnwindSafe for DeviceLaunchConfig
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