pub struct MegakernelGridPlan {
pub geometry: MegakernelLaunchGeometry,
pub worker_groups: u32,
}Expand description
Resolved worker-grid plan shared by direct and policy-driven megakernel paths.
Fields§
§geometry: MegakernelLaunchGeometryPadded launch geometry for the ring protocol.
worker_groups: u32Worker workgroups selected for the dispatch.
Implementations§
Source§impl MegakernelGridPlan
impl MegakernelGridPlan
Sourcepub fn recommend(
request: MegakernelGridRequest,
limits: MegakernelGridLimits,
) -> Result<Self, BackendError>
pub fn recommend( request: MegakernelGridRequest, limits: MegakernelGridLimits, ) -> Result<Self, BackendError>
Resolve worker groups, workgroup width, slot padding, and dispatch grid.
§Errors
Returns BackendError when adapter limits are malformed.
Trait Implementations§
Source§impl Clone for MegakernelGridPlan
impl Clone for MegakernelGridPlan
Source§fn clone(&self) -> MegakernelGridPlan
fn clone(&self) -> MegakernelGridPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MegakernelGridPlan
impl Debug for MegakernelGridPlan
Source§impl PartialEq for MegakernelGridPlan
impl PartialEq for MegakernelGridPlan
Source§fn eq(&self, other: &MegakernelGridPlan) -> bool
fn eq(&self, other: &MegakernelGridPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MegakernelGridPlan
impl Eq for MegakernelGridPlan
impl StructuralPartialEq for MegakernelGridPlan
Auto Trait Implementations§
impl Freeze for MegakernelGridPlan
impl RefUnwindSafe for MegakernelGridPlan
impl Send for MegakernelGridPlan
impl Sync for MegakernelGridPlan
impl Unpin for MegakernelGridPlan
impl UnsafeUnpin for MegakernelGridPlan
impl UnwindSafe for MegakernelGridPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.