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: u64Device ID
name: StringDevice name
vendor: StringDevice vendor
class: u64Device class 0: None, 1: CPU, 2: GPU
status: u64Device status
mem_size: u64Device total amount of memory available
pes: u64Device number of processing elements (PEs)
ndims: u64Device number of dimensions
wgsize: u64Device 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