pub struct GpuSpec {
pub max_threads_per_sm: u32,
pub max_blocks_per_sm: u32,
pub max_shared_memory_per_sm: u32,
pub max_registers_per_sm: u32,
pub warp_size: u32,
pub sm_count: u32,
}Expand description
Typical GPU multiprocessor specification.
Fields§
§max_threads_per_sm: u32Maximum threads per multiprocessor.
max_blocks_per_sm: u32Maximum workgroups (blocks) per multiprocessor.
Maximum shared memory per multiprocessor in bytes.
max_registers_per_sm: u32Maximum registers per multiprocessor.
warp_size: u32Warp size (wavefront size).
sm_count: u32Total number of multiprocessors on the device.
Implementations§
Trait Implementations§
impl StructuralPartialEq for GpuSpec
Auto Trait Implementations§
impl Freeze for GpuSpec
impl RefUnwindSafe for GpuSpec
impl Send for GpuSpec
impl Sync for GpuSpec
impl Unpin for GpuSpec
impl UnsafeUnpin for GpuSpec
impl UnwindSafe for GpuSpec
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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