pub struct DynamicParallelismContext { /* private fields */ }Expand description
Dynamic parallelism context for managing child kernel launches
Implementations§
Source§impl DynamicParallelismContext
impl DynamicParallelismContext
Sourcepub fn with_max_depth(self, depth: u32) -> Self
pub fn with_max_depth(self, depth: u32) -> Self
Create with custom nesting depth limit
Sourcepub fn with_max_pending(self, max: usize) -> Self
pub fn with_max_pending(self, max: usize) -> Self
Create with custom max pending limit
Sourcepub fn launch_child<K: ChildKernel>(
&mut self,
kernel: &K,
grid: Grid,
block: Block,
shared_mem_bytes: usize,
) -> Result<()>
pub fn launch_child<K: ChildKernel>( &mut self, kernel: &K, grid: Grid, block: Block, shared_mem_bytes: usize, ) -> Result<()>
Launch a child kernel (synchronous execution in CPU backend)
Sourcepub fn device_synchronize(&self) -> Result<()>
pub fn device_synchronize(&self) -> Result<()>
Synchronize all pending child kernels (no-op in synchronous mode)
Sourcepub fn completed_launches(&self) -> usize
pub fn completed_launches(&self) -> usize
Get the number of completed child launches
Sourcepub fn launch_history(&self) -> Vec<ChildLaunch>
pub fn launch_history(&self) -> Vec<ChildLaunch>
Get launch history
Sourcepub fn current_depth(&self) -> u32
pub fn current_depth(&self) -> u32
Get current nesting depth
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynamicParallelismContext
impl RefUnwindSafe for DynamicParallelismContext
impl Send for DynamicParallelismContext
impl Sync for DynamicParallelismContext
impl Unpin for DynamicParallelismContext
impl UnsafeUnpin for DynamicParallelismContext
impl UnwindSafe for DynamicParallelismContext
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