pub struct DeviceLimits {
pub max_threads_per_block: u32,
pub max_shared_per_block: u32,
pub max_regs_per_block: u32,
pub warp_size: u32,
}Expand description
Device-side limits, queried rather than tabulated.
Fields§
§max_threads_per_block: u32CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK.
CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK.
max_regs_per_block: u32CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_BLOCK.
warp_size: u32CU_DEVICE_ATTRIBUTE_WARP_SIZE.
Trait Implementations§
Source§impl Clone for DeviceLimits
impl Clone for DeviceLimits
Source§fn clone(&self) -> DeviceLimits
fn clone(&self) -> DeviceLimits
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 DeviceLimits
Source§impl Debug for DeviceLimits
impl Debug for DeviceLimits
impl Eq for DeviceLimits
Source§impl PartialEq for DeviceLimits
impl PartialEq for DeviceLimits
impl StructuralPartialEq for DeviceLimits
Auto Trait Implementations§
impl Freeze for DeviceLimits
impl RefUnwindSafe for DeviceLimits
impl Send for DeviceLimits
impl Sync for DeviceLimits
impl Unpin for DeviceLimits
impl UnsafeUnpin for DeviceLimits
impl UnwindSafe for DeviceLimits
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