all-smi 0.26.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.

// UI-related constants

/// Margin to ensure UI elements fit on screen
pub const SCREEN_MARGIN: usize = 10;

/// Animation speed for loading indicator (lower = faster)
pub const ANIMATION_SPEED: u64 = 2;

/// Maximum size of the loading indicator block
pub const BLOCK_SIZE_MAX: usize = 3;

/// Divisor for calculating block size relative to bar width
pub const BLOCK_SIZE_DIVISOR: usize = 4;