Struct numa_gpu::runtime::dispatcher::HetMorselIterator2
source · [−]pub struct HetMorselIterator2<'a, R, S> { /* private fields */ }
Implementations
sourceimpl<'a, R, S> HetMorselIterator2<'a, R, S>
impl<'a, R, S> HetMorselIterator2<'a, R, S>
pub fn with_state<CpuF, GpuF, CWS, GWS>(
self,
cpu_init: CpuF,
gpu_init: GpuF
) -> Result<StatefulHetMorselIterator2<'a, R, S, CWS, GWS>> where
CpuF: Fn(u16) -> Result<CWS> + Send + Sync,
GpuF: Fn(u16, &Stream) -> Result<GWS> + Send + Sync,
CWS: Send,
GWS: Send,
pub fn fold<CpuF, GpuF>(&mut self, cpu_f: CpuF, gpu_f: GpuF) -> Result<()> where
R: Copy + DeviceCopy + Send + Sync,
S: Copy + DeviceCopy + Send + Sync,
CpuF: Fn((&[R], &[S])) -> Result<()> + Send + Sync,
GpuF: Fn((LaunchableSlice<'_, R>, LaunchableSlice<'_, S>), &Stream) -> Result<()> + Send + Sync,
Auto Trait Implementations
impl<'a, R, S> !RefUnwindSafe for HetMorselIterator2<'a, R, S>
impl<'a, R, S> Send for HetMorselIterator2<'a, R, S> where
R: Send,
S: Send,
impl<'a, R, S> !Sync for HetMorselIterator2<'a, R, S>
impl<'a, R, S> Unpin for HetMorselIterator2<'a, R, S>
impl<'a, R, S> !UnwindSafe for HetMorselIterator2<'a, R, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more