pub struct DevInfo {
pub id: u64,
pub name: String,
pub vendor: String,
pub class: u64,
pub status: u64,
pub mem_size: u64,
pub pes: u64,
pub ndims: u64,
pub wgsize: u64,
pub wisize: Vec<usize>,
}
Expand description
Represents info of the computing device
Fields§
§id: u64
Device ID
name: String
Device name
vendor: String
Device vendor
class: u64
Device class 0: None, 1: CPU, 2: GPU
status: u64
Device status
mem_size: u64
Device total amount of memory available
pes: u64
Device number of processing elements (PEs)
ndims: u64
Device number of dimensions
wgsize: u64
Device workgroup max size
wisize: Vec<usize>
Device max size per dimension
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevInfo
impl RefUnwindSafe for DevInfo
impl Send for DevInfo
impl Sync for DevInfo
impl Unpin for DevInfo
impl UnwindSafe for DevInfo
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