pub struct GpuDeviceInfo {
pub ordinal: usize,
pub name: String,
pub capability: GpuCapability,
pub sm_count: i32,
pub max_threads_per_sm: i32,
pub max_shared_mem_per_block: usize,
pub l2_cache_bytes: usize,
pub total_mem_bytes: usize,
pub free_mem_bytes: usize,
pub ecc_enabled: bool,
pub integrated: bool,
pub mig_mode: bool,
}Fields§
§ordinal: usize§name: String§capability: GpuCapability§sm_count: i32§max_threads_per_sm: i32§l2_cache_bytes: usize§total_mem_bytes: usize§free_mem_bytes: usize§ecc_enabled: bool§integrated: bool§mig_mode: boolImplementations§
Source§impl GpuDeviceInfo
impl GpuDeviceInfo
Sourcepub const fn memory_budget_bytes(&self) -> usize
pub const fn memory_budget_bytes(&self) -> usize
Per-device byte budget a dispatch may size its buffers against:
min(free_mem, total_mem / MEMORY_BUDGET_TOTAL_DIVISOR). Single source
of truth for both the primary-device budget (device_runtime::probe) and the
per-ordinal pool budget (GpuRuntime::memory_budget_for).
pub fn score(&self) -> f64
Trait Implementations§
Source§impl Clone for GpuDeviceInfo
impl Clone for GpuDeviceInfo
Source§fn clone(&self) -> GpuDeviceInfo
fn clone(&self) -> GpuDeviceInfo
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 moreSource§impl Debug for GpuDeviceInfo
impl Debug for GpuDeviceInfo
impl Eq for GpuDeviceInfo
Source§impl PartialEq for GpuDeviceInfo
impl PartialEq for GpuDeviceInfo
Source§fn eq(&self, other: &GpuDeviceInfo) -> bool
fn eq(&self, other: &GpuDeviceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GpuDeviceInfo
Auto Trait Implementations§
impl Freeze for GpuDeviceInfo
impl RefUnwindSafe for GpuDeviceInfo
impl Send for GpuDeviceInfo
impl Sync for GpuDeviceInfo
impl Unpin for GpuDeviceInfo
impl UnsafeUnpin for GpuDeviceInfo
impl UnwindSafe for GpuDeviceInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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