pub struct DeviceParams {
pub cc: &'static str,
pub sm_count: u32,
pub max_threads_per_sm: u32,
pub max_warps_per_sm: u32,
pub max_blocks_per_sm: u32,
pub smem_per_block_default: u64,
pub smem_per_sm: u64,
}Expand description
Per-SM limits by compute capability. Only the parts this project has measured on are listed; an unknown cc is an error, never a guess.
Fields§
§cc: &'static str§sm_count: u32§max_threads_per_sm: u32§max_warps_per_sm: u32§max_blocks_per_sm: u32§smem_per_block_default: u64§smem_per_sm: u64Trait Implementations§
Source§impl Clone for DeviceParams
impl Clone for DeviceParams
Source§fn clone(&self) -> DeviceParams
fn clone(&self) -> DeviceParams
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 moreimpl Copy for DeviceParams
Auto Trait Implementations§
impl Freeze for DeviceParams
impl RefUnwindSafe for DeviceParams
impl Send for DeviceParams
impl Sync for DeviceParams
impl Unpin for DeviceParams
impl UnsafeUnpin for DeviceParams
impl UnwindSafe for DeviceParams
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