pub struct AcceleratorDoctorReport {
pub backend: &'static str,
pub device: usize,
pub name: String,
pub revision: String,
pub total_memory_mib: usize,
pub free_memory_mib: Option<usize>,
pub requested_budget_mib: usize,
pub allocation_test: bool,
pub gemm_available: bool,
pub kernel_available: bool,
}Expand description
What a device offers, gathered before a campaign commits to it.
Fields§
§backend: &'static str"cuda" or "metal".
device: usize§name: String§revision: StringCUDA compute capability, or the Metal GPU family.
total_memory_mib: usize§free_memory_mib: Option<usize>§requested_budget_mib: usize§allocation_test: bool§gemm_available: boolcuBLAS on CUDA; the bundled tiled GEMM kernels on Metal.
kernel_available: boolTrait Implementations§
Source§impl Clone for AcceleratorDoctorReport
impl Clone for AcceleratorDoctorReport
Auto Trait Implementations§
impl Freeze for AcceleratorDoctorReport
impl RefUnwindSafe for AcceleratorDoctorReport
impl Send for AcceleratorDoctorReport
impl Sync for AcceleratorDoctorReport
impl Unpin for AcceleratorDoctorReport
impl UnsafeUnpin for AcceleratorDoctorReport
impl UnwindSafe for AcceleratorDoctorReport
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