1use libmcl_sys::MCL_DEV_DIMS;
2
3pub const DEV_DIMS: u32 = MCL_DEV_DIMS;
4#[allow(unused_imports)]
5use std::ffi::CString;
6
7#[derive(Clone, Copy, serde::Serialize, serde::Deserialize)]
8pub enum DevType {
9 NONE,
10 CPU,
11 GPU,
12 FPGA,
13 DFT,
14 ANY,
15}
16
17#[derive(Debug)]
18pub struct DevInfo {
20 pub id: u64,
22 pub name: String,
24 pub vendor: String,
26 pub class: u64,
28 pub status: u64,
30 pub mem_size: u64,
32 pub pes: u64,
34 pub ndims: u64,
36 pub wgsize: u64,
38 pub wisize: Vec<usize>,
40}