pub struct TiledPartition { /* private fields */ }Expand description
Tiled partition: a subdivision of a thread group
Implementations§
Source§impl TiledPartition
impl TiledPartition
Create with shared state
Sourcepub fn thread_rank(&self) -> u32
pub fn thread_rank(&self) -> u32
Get thread rank within tile
Sourcepub fn shfl(&self, value: f32, src_rank: u32) -> f32
pub fn shfl(&self, value: f32, src_rank: u32) -> f32
Shuffle: get value from thread with given rank
Sourcepub fn shfl_down(&self, value: f32, delta: u32) -> f32
pub fn shfl_down(&self, value: f32, delta: u32) -> f32
Shuffle down: get value from thread rank + delta
Auto Trait Implementations§
impl Freeze for TiledPartition
impl RefUnwindSafe for TiledPartition
impl Send for TiledPartition
impl Sync for TiledPartition
impl Unpin for TiledPartition
impl UnsafeUnpin for TiledPartition
impl UnwindSafe for TiledPartition
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