pub struct DynamicParallelismConfig {
pub max_nesting_depth: u32,
pub max_pending_launches: u32,
pub sync_depth: u32,
pub child_grid: Dim3,
pub child_block: Dim3,
pub child_shared_mem: u32,
pub sm_version: SmVersion,
}Expand description
Configuration for dynamic parallelism (device-side kernel launches).
Controls nesting depth, pending launch limits, synchronization behavior, and child kernel launch dimensions.
§CUDA constraints
max_nesting_depthmust be in1..=24.max_pending_launchesmust be at least 1.sync_depthmust be less than or equal tomax_nesting_depth.- All grid and block dimensions must be non-zero.
Fields§
§max_nesting_depth: u32Maximum nesting depth for child kernel launches (CUDA limit: 24).
max_pending_launches: u32Maximum number of pending (un-synchronized) child launches (default 2048).
sync_depth: u32Depth at which to insert synchronization barriers.
Child kernels launched at depths >= sync_depth will synchronize
before returning to the parent, preventing unbounded pending launches.
child_grid: Dim3Grid dimensions for child kernel launches.
child_block: Dim3Block dimensions for child kernel launches.
Dynamic shared memory allocation for child kernels (bytes).
sm_version: SmVersionTarget GPU architecture.
Implementations§
Trait Implementations§
Source§impl Clone for DynamicParallelismConfig
impl Clone for DynamicParallelismConfig
Source§fn clone(&self) -> DynamicParallelismConfig
fn clone(&self) -> DynamicParallelismConfig
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 DynamicParallelismConfig
impl Debug for DynamicParallelismConfig
Source§impl Display for DynamicParallelismConfig
impl Display for DynamicParallelismConfig
Source§impl PartialEq for DynamicParallelismConfig
impl PartialEq for DynamicParallelismConfig
impl Eq for DynamicParallelismConfig
impl StructuralPartialEq for DynamicParallelismConfig
Auto Trait Implementations§
impl Freeze for DynamicParallelismConfig
impl RefUnwindSafe for DynamicParallelismConfig
impl Send for DynamicParallelismConfig
impl Sync for DynamicParallelismConfig
impl Unpin for DynamicParallelismConfig
impl UnsafeUnpin for DynamicParallelismConfig
impl UnwindSafe for DynamicParallelismConfig
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