pub enum BlasMsg {
Gemm(Box<dyn GemmDispatch>),
L1(Box<dyn BlasL1Dispatch>),
L2(Box<dyn BlasL2Dispatch>),
L3(Box<dyn BlasL3Dispatch>),
GemmStridedBatched(Box<dyn GemmStridedBatchedDispatch>),
Sgemm(Box<SgemmRequest>),
}Expand description
Public messages for BlasActor. Each variant boxes a typed
dispatcher trait object so the dtype dimension travels through the
box without forcing an N-fold mailbox explosion.
Variants§
Gemm(Box<dyn GemmDispatch>)
Generic typed gemm (canonical form). Construct via
BlasMsg::gemm::<T> or
gemm::GemmRequest::<T>::into_msg.
L1(Box<dyn BlasL1Dispatch>)
L1 ops boxed in BlasL1Dispatch.
L2(Box<dyn BlasL2Dispatch>)
L2 ops boxed in BlasL2Dispatch.
L3(Box<dyn BlasL3Dispatch>)
L3 ops other than gemm (geam / syrk / trsm).
GemmStridedBatched(Box<dyn GemmStridedBatchedDispatch>)
Strided-batched gemm.
Sgemm(Box<SgemmRequest>)
👎Deprecated: use BlasMsg::gemm::<f32>(GemmRequest::<f32> { … })
Legacy alias kept for back-compat — routes through Gemm<f32>
internally.
Implementations§
Source§impl BlasMsg
impl BlasMsg
Sourcepub fn gemm<T: GemmSupported>(req: GemmRequest<T>) -> Selfwhere
GemmRequest<T>: GemmDispatch,
pub fn gemm<T: GemmSupported>(req: GemmRequest<T>) -> Selfwhere
GemmRequest<T>: GemmDispatch,
Construct a BlasMsg::Gemm from a typed GemmRequest<T>.
Convenience wrapper so callers don’t have to box manually.
Sourcepub fn gemm_strided_batched<T: GemmSupported>(
req: GemmStridedBatchedRequest<T>,
) -> Self
pub fn gemm_strided_batched<T: GemmSupported>( req: GemmStridedBatchedRequest<T>, ) -> Self
Construct a BlasMsg::GemmStridedBatched from a typed request.
Auto Trait Implementations§
impl Freeze for BlasMsg
impl !RefUnwindSafe for BlasMsg
impl Send for BlasMsg
impl !Sync for BlasMsg
impl Unpin for BlasMsg
impl UnsafeUnpin for BlasMsg
impl !UnwindSafe for BlasMsg
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