pub struct DeviceProperties {
pub name: String,
pub total_memory: usize,
pub max_threads_per_block: u32,
pub max_blocks_per_grid: u32,
pub warp_size: u32,
pub compute_capability: (u32, u32),
}
Expand description
Device properties
Fields§
§name: String
§total_memory: usize
§max_threads_per_block: u32
§max_blocks_per_grid: u32
§warp_size: u32
§compute_capability: (u32, u32)
Trait Implementations§
Source§impl Clone for DeviceProperties
impl Clone for DeviceProperties
Source§fn clone(&self) -> DeviceProperties
fn clone(&self) -> DeviceProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DeviceProperties
impl RefUnwindSafe for DeviceProperties
impl Send for DeviceProperties
impl Sync for DeviceProperties
impl Unpin for DeviceProperties
impl UnwindSafe for DeviceProperties
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