use serde::{Deserialize, Serialize};
use super::gpu_allocation::GpuAllocationStrategy;
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct IgnoredGpuProcess {
pub gpu_index: u32,
pub pid: u32,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GpuInfo {
pub uuid: String,
pub index: u32,
pub available: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SchedulerInfo {
pub gpus: Vec<GpuInfo>,
pub allowed_gpu_indices: Option<Vec<u32>>,
pub gpu_allocation_strategy: GpuAllocationStrategy,
}