all-smi 0.24.2

Command-line utility for monitoring GPU hardware. It provides a real-time view of GPU utilization, memory usage, temperature, power consumption, and other metrics.
Documentation
// Copyright 2025 Lablup Inc. and Jeongkyu Shin
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Module for device readers with reduced code duplication

// Chassis-level monitoring (node power, thermal, BMC)
pub mod chassis;

// Common caching utilities shared across all readers
pub mod common_cache;

// Native Apple Silicon reader using IOReport/SMC (no sudo required)
#[cfg(target_os = "macos")]
pub mod apple_silicon_native;

pub mod furiosa;
pub mod gaudi;
#[cfg(target_os = "linux")]
pub mod google_tpu;
pub mod nvidia;
pub mod nvidia_hardware;
pub mod nvidia_jetson;
pub mod nvidia_mig;
pub mod nvidia_vgpu;
pub mod rebellions;
#[cfg(target_os = "linux")]
pub mod tpu_grpc;
#[cfg(target_os = "linux")]
pub mod tpu_info_runner;
#[cfg(target_os = "linux")]
pub mod tpu_pjrt;
#[cfg(target_os = "linux")]
pub mod tpu_sysfs;

#[cfg(target_os = "linux")]
pub mod tenstorrent;

#[cfg(all(target_os = "linux", not(target_env = "musl")))]
pub mod amd;

#[cfg(target_os = "windows")]
pub mod amd_windows;

// Intel client GPU (Arc / Iris / Xe) — see issue #244. Sysfs on Linux,
// WMI on Windows. The PCI-ID name lookup and low-level sysfs helpers
// live in sibling modules so the per-OS reader files stay small.
// `intel_gpu_names` is platform-agnostic (pure string matching) and is
// available on both Linux and Windows so the architecture / SYCL
// classification can be reused by both per-OS readers and by external
// consumers of the library.
#[cfg(target_os = "linux")]
pub mod intel_gpu_engine;
#[cfg(target_os = "linux")]
pub mod intel_gpu_fdinfo;
#[cfg(target_os = "linux")]
pub mod intel_gpu_gtidle;
// Opt-in Intel Level Zero (oneAPI) backend. Cross-platform FFI shim that
// prefers Sysman metrics per field when available, while keeping sysfs/WMI
// as the baseline and fallback. Enabled with `--features level_zero`;
// default builds do not pull this module in or link Level Zero symbols.
#[cfg(all(
    any(target_os = "linux", target_os = "windows"),
    feature = "level_zero"
))]
pub mod intel_gpu_level_zero;
#[cfg(target_os = "linux")]
pub mod intel_gpu_linux;
#[cfg(any(target_os = "linux", target_os = "windows"))]
pub mod intel_gpu_names;
// The helpers themselves only use portable filesystem APIs, so keep their unit
// tests available on non-Linux development hosts as well.
#[cfg(any(target_os = "linux", test))]
pub mod intel_gpu_sysfs;

#[cfg(target_os = "windows")]
pub mod intel_gpu_windows;