pub struct Machine {
pub devices: Vec<Device>,
pub npu_driver: Option<String>,
pub npu_compiler: bool,
pub npu_compiler_needs: Vec<Vec<String>>,
}Fields§
§devices: Vec<Device>§npu_driver: Option<String>Version of the loaded libze_intel_npu.so.1, the NPU user-mode driver.
npu_compiler: boolWhether the compiler the installed driver loads is on the linker path.
Some distros package the driver without it, and the NPU cannot compile
then; compile_model fails with ZE_RESULT_ERROR_UNSUPPORTED_FEATURE.
npu_compiler_needs: Vec<Vec<String>>The compiler libraries the driver’s binary names, as alternatives each of which needs every library in it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
impl UnwindSafe for Machine
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