pub struct GridGroup { /* private fields */ }Expand description
Grid group (all threads across all blocks)
Implementations§
Source§impl GridGroup
impl GridGroup
Sourcepub fn new(
grid_dim: [u32; 3],
block_dim: [u32; 3],
block_idx: [u32; 3],
thread_idx: [u32; 3],
) -> Self
pub fn new( grid_dim: [u32; 3], block_dim: [u32; 3], block_idx: [u32; 3], thread_idx: [u32; 3], ) -> Self
Create a grid group
Sourcepub fn with_barrier(self, barrier: Arc<Barrier>) -> Self
pub fn with_barrier(self, barrier: Arc<Barrier>) -> Self
Create with a grid-level barrier for cooperative launch synchronization
Sourcepub fn thread_rank(&self) -> u32
pub fn thread_rank(&self) -> u32
Get this thread’s global rank
Sourcepub fn dim_blocks(&self) -> [u32; 3]
pub fn dim_blocks(&self) -> [u32; 3]
Get grid dimensions
Sourcepub fn dim_threads(&self) -> [u32; 3]
pub fn dim_threads(&self) -> [u32; 3]
Get block dimensions
Auto Trait Implementations§
impl Freeze for GridGroup
impl RefUnwindSafe for GridGroup
impl Send for GridGroup
impl Sync for GridGroup
impl Unpin for GridGroup
impl UnsafeUnpin for GridGroup
impl UnwindSafe for GridGroup
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