pub mod device;
pub mod event;
pub mod nv_link;
use crate::ffi::bindings::*;
use bitflags::bitflags;
#[cfg(feature = "serde")]
use serde_derive::{Deserialize, Serialize};
bitflags! {
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Behavior: u32 {
const DEFAULT = nvmlFlagDefault;
const FORCE = nvmlFlagForce;
}
}
bitflags! {
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Default)]
pub struct InitFlags: u32 {
const NO_GPUS = NVML_INIT_FLAG_NO_GPUS;
const NO_ATTACH = NVML_INIT_FLAG_NO_ATTACH;
}
}