pub struct GpuSpMvConfig {
pub backend: GpuSpMvBackend,
pub block_size: usize,
pub n_warps: usize,
pub use_texture: bool,
}Expand description
Configuration for GPU-ready SpMV operations.
Fields§
§backend: GpuSpMvBackendCompute backend to use.
block_size: usizeWorkgroup / warp size (default 256).
n_warps: usizeNumber of warps per block (default 8).
use_texture: boolWhether to use texture memory / L1 hints for the x vector (default false).
Trait Implementations§
Source§impl Clone for GpuSpMvConfig
impl Clone for GpuSpMvConfig
Source§fn clone(&self) -> GpuSpMvConfig
fn clone(&self) -> GpuSpMvConfig
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 Debug for GpuSpMvConfig
impl Debug for GpuSpMvConfig
Auto Trait Implementations§
impl Freeze for GpuSpMvConfig
impl RefUnwindSafe for GpuSpMvConfig
impl Send for GpuSpMvConfig
impl Sync for GpuSpMvConfig
impl Unpin for GpuSpMvConfig
impl UnsafeUnpin for GpuSpMvConfig
impl UnwindSafe for GpuSpMvConfig
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more