pub struct ResidentGridPlan {
pub geometry: ResidentLaunchGeometry,
pub worker_groups: u32,
}Expand description
Resolved worker-grid plan shared by direct and policy-driven megakernel paths.
Fields§
§geometry: ResidentLaunchGeometryPadded launch geometry for the ring protocol.
worker_groups: u32Worker workgroups selected for the dispatch.
Implementations§
Source§impl ResidentGridPlan
impl ResidentGridPlan
Sourcepub fn recommend(
request: ResidentGridRequest,
limits: ResidentGridLimits,
) -> Result<Self, BackendError>
pub fn recommend( request: ResidentGridRequest, limits: ResidentGridLimits, ) -> 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 ResidentGridPlan
impl Clone for ResidentGridPlan
Source§fn clone(&self) -> ResidentGridPlan
fn clone(&self) -> ResidentGridPlan
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 moreimpl Copy for ResidentGridPlan
Source§impl Debug for ResidentGridPlan
impl Debug for ResidentGridPlan
impl Eq for ResidentGridPlan
Source§impl PartialEq for ResidentGridPlan
impl PartialEq for ResidentGridPlan
impl StructuralPartialEq for ResidentGridPlan
Auto Trait Implementations§
impl Freeze for ResidentGridPlan
impl RefUnwindSafe for ResidentGridPlan
impl Send for ResidentGridPlan
impl Sync for ResidentGridPlan
impl Unpin for ResidentGridPlan
impl UnsafeUnpin for ResidentGridPlan
impl UnwindSafe for ResidentGridPlan
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.