pub struct LoadingStrategy {}
Expand description
Loads global memory into the stage without modification,
dividing the stage into the smallest possible contiguous slices.
Each memcpy_async
is called with the same arguments for cooperative behaviour
Trait Implementations§
Source§impl AsyncFullLoadingStrategy for LoadingStrategy
impl AsyncFullLoadingStrategy for LoadingStrategy
Source§type TilingLayout = StridedTilingLayout
type TilingLayout = StridedTilingLayout
The layout describing how data is tiled across the stage.
Source§type Job<MP: MatmulPrecision> = Job
type Job<MP: MatmulPrecision> = Job
The [LoadingJob] for this strategy.
Source§fn new_job<MP: MatmulPrecision, G: GlobalConfig>(
input_ident: InputIdent,
config: G,
) -> Job
fn new_job<MP: MatmulPrecision, G: GlobalConfig>( input_ident: InputIdent, config: G, ) -> Job
Returns the job with preliminary calculations done.
Source§fn barrier_level() -> BarrierLevel
fn barrier_level() -> BarrierLevel
The barrier level at which the copy mechanism works
fn __expand_new_job<MP: MatmulPrecision, G: GlobalConfig>( context: &mut Scope, input_ident: InputIdent, config: G, ) -> <Job as CubeType>::ExpandType
fn __expand_barrier_level( context: &mut Scope, ) -> <BarrierLevel as CubeType>::ExpandType
Source§impl Clone for LoadingStrategy
impl Clone for LoadingStrategy
Source§fn clone(&self) -> LoadingStrategy
fn clone(&self) -> LoadingStrategy
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 CubeType for LoadingStrategy
impl CubeType for LoadingStrategy
type ExpandType = LoadingStrategyExpand
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl LoadingValidation for LoadingStrategy
impl LoadingValidation for LoadingStrategy
fn check<C: GlobalConfig>( _config: &C, _ident: Ident, ) -> Result<(), InvalidConfigError>
impl Copy for LoadingStrategy
Auto Trait Implementations§
impl Freeze for LoadingStrategy
impl RefUnwindSafe for LoadingStrategy
impl Send for LoadingStrategy
impl Sync for LoadingStrategy
impl Unpin for LoadingStrategy
impl UnwindSafe for LoadingStrategy
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