pub enum SparseMsg {
Op(Box<dyn SparseDispatch>),
SpMv {
csr: CsrMatrix,
x: GpuRef<f32>,
y: GpuRef<f32>,
alpha: f32,
beta: f32,
reply: Sender<Result<(), GpuError>>,
},
SpMm {
csr: CsrMatrix,
b: GpuRef<f32>,
c: GpuRef<f32>,
b_cols: i64,
ldb: i64,
ldc: i64,
alpha: f32,
beta: f32,
reply: Sender<Result<(), GpuError>>,
},
}Expand description
Public messages for SparseActor.
New code uses the canonical Op(Box<dyn SparseDispatch>) payload.
The two deprecated typed variants are aliases retained for
back-compat with F-9 callers and the existing spmv_e2e integration
test.
Variants§
Op(Box<dyn SparseDispatch>)
Canonical Phase-4 dispatch — generic over dtype/format/index
type via the boxed SparseDispatch.
SpMv
👎Deprecated: use SparseMsg::Op(Box::new(SpMvRequest::new(…))) for the dtype-generic path
Fields
§
csr: CsrMatrix👎Deprecated: use SparseMsg::Op(Box::new(SpMvRequest::new(…))) for the dtype-generic path
§
x: GpuRef<f32>👎Deprecated: use SparseMsg::Op(Box::new(SpMvRequest::new(…))) for the dtype-generic path
SpMm
👎Deprecated: use SparseMsg::Op(Box::new(SpMmRequest::new(…))) for the dtype-generic path
Fields
§
csr: CsrMatrix👎Deprecated: use SparseMsg::Op(Box::new(SpMmRequest::new(…))) for the dtype-generic path
§
b: GpuRef<f32>👎Deprecated: use SparseMsg::Op(Box::new(SpMmRequest::new(…))) for the dtype-generic path
§
c: GpuRef<f32>👎Deprecated: use SparseMsg::Op(Box::new(SpMmRequest::new(…))) for the dtype-generic path
Auto Trait Implementations§
impl Freeze for SparseMsg
impl !RefUnwindSafe for SparseMsg
impl Send for SparseMsg
impl !Sync for SparseMsg
impl Unpin for SparseMsg
impl UnsafeUnpin for SparseMsg
impl !UnwindSafe for SparseMsg
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