pub trait ComputeDevice: Send + Sync {
Show 17 methods
// Required methods
fn device_id(&self) -> DeviceId;
fn device_name(&self) -> &str;
fn device_type(&self) -> DeviceType;
fn compute_utilization(&self) -> Result<f64>;
fn compute_clock_mhz(&self) -> Result<u32>;
fn compute_temperature_c(&self) -> Result<f64>;
fn compute_power_watts(&self) -> Result<f64>;
fn compute_power_limit_watts(&self) -> Result<f64>;
fn memory_used_bytes(&self) -> Result<u64>;
fn memory_total_bytes(&self) -> Result<u64>;
fn memory_bandwidth_gbps(&self) -> Result<f64>;
fn sm_count(&self) -> u32;
fn active_sm_count(&self) -> Result<u32>;
fn pcie_tx_bytes_per_sec(&self) -> Result<u64>;
fn pcie_rx_bytes_per_sec(&self) -> Result<u64>;
fn pcie_generation(&self) -> u8;
fn pcie_width(&self) -> u8;
}Expand description
Unified compute device abstraction (TRUENO-SPEC-020)
Required Methods§
fn device_name(&self) -> &str
fn device_type(&self) -> DeviceType
Sourcefn compute_utilization(&self) -> Result<f64>
fn compute_utilization(&self) -> Result<f64>
Compute metrics
fn compute_clock_mhz(&self) -> Result<u32>
fn compute_temperature_c(&self) -> Result<f64>
fn compute_power_watts(&self) -> Result<f64>
fn compute_power_limit_watts(&self) -> Result<f64>
Sourcefn memory_used_bytes(&self) -> Result<u64>
fn memory_used_bytes(&self) -> Result<u64>
Memory metrics
fn memory_total_bytes(&self) -> Result<u64>
fn memory_bandwidth_gbps(&self) -> Result<f64>
fn active_sm_count(&self) -> Result<u32>
Sourcefn pcie_tx_bytes_per_sec(&self) -> Result<u64>
fn pcie_tx_bytes_per_sec(&self) -> Result<u64>
PCIe / Interconnect metrics