1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! Constants used throughout the mock server
// 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.
// General configuration constants
pub const DEFAULT_NVIDIA_GPU_NAME: &str = "NVIDIA B200 192GB HBM3";
pub const DEFAULT_NVIDIA_DRIVER_VERSION: &str = "580.82.07";
pub const DEFAULT_CUDA_VERSION: &str = "13.0";
pub const DEFAULT_AMD_GPU_NAME: &str = "AMD Instinct MI355X 288GB HBM3";
pub const DEFAULT_AMD_INSTINCT_NAME: &str = "AMD Instinct MI300X 192GB";
pub const DEFAULT_AMD_DRIVER_VERSION: &str = "30.10.1";
pub const DEFAULT_AMD_ROCM_VERSION: &str = "7.0.2";
pub const DEFAULT_TENSTORRENT_NAME: &str = "Tenstorrent Grayskull e75 120W";
pub const DEFAULT_FURIOSA_NAME: &str = "Furiosa RNGD";
/// Default device name for the Intel client GPU mock (issue #244).
/// We anchor on the Arc B580 (Battlemage, 12GB) — current-generation
/// discrete Arc, around 190W TDP. Override via `--gpu-name`.
pub const DEFAULT_INTEL_GPU_NAME: &str = "Intel Arc B580 12GB";
/// Representative Intel Graphics Driver version string. The "real"
/// equivalent on Linux is the kernel/mesa stack, which doesn't
/// translate to a single version number; the Windows-style version is
/// what consumers see in the WMI reader's `detail["Driver Version"]`.
pub const DEFAULT_INTEL_DRIVER_VERSION: &str = "32.0.101.6299";
pub const NUM_GPUS: usize = 8;
pub const UPDATE_INTERVAL_SECS: u64 = 3;
pub const MAX_CONNECTIONS_PER_SERVER: usize = 10;
// Disk size options in bytes
pub const DISK_SIZE_1TB: u64 = 1024 * 1024 * 1024 * 1024;
pub const DISK_SIZE_4TB: u64 = 4 * 1024 * 1024 * 1024 * 1024;
pub const DISK_SIZE_12TB: u64 = 12 * 1024 * 1024 * 1024 * 1024;
// CPU placeholders
pub const PLACEHOLDER_CPU_UTIL: &str = "{{CPU_UTIL}}";
pub const PLACEHOLDER_CPU_SOCKET0_UTIL: &str = "{{CPU_SOCKET0_UTIL}}";
pub const PLACEHOLDER_CPU_SOCKET1_UTIL: &str = "{{CPU_SOCKET1_UTIL}}";
pub const PLACEHOLDER_CPU_P_CORE_UTIL: &str = "{{CPU_P_CORE_UTIL}}";
pub const PLACEHOLDER_CPU_E_CORE_UTIL: &str = "{{CPU_E_CORE_UTIL}}";
pub const PLACEHOLDER_CPU_TEMP: &str = "{{CPU_TEMP}}";
pub const PLACEHOLDER_CPU_POWER: &str = "{{CPU_POWER}}";
// System memory placeholders
pub const PLACEHOLDER_SYS_MEMORY_USED: &str = "{{SYS_MEMORY_USED}}";
pub const PLACEHOLDER_SYS_MEMORY_AVAILABLE: &str = "{{SYS_MEMORY_AVAILABLE}}";
pub const PLACEHOLDER_SYS_MEMORY_FREE: &str = "{{SYS_MEMORY_FREE}}";
pub const PLACEHOLDER_SYS_MEMORY_UTIL: &str = "{{SYS_MEMORY_UTIL}}";
pub const PLACEHOLDER_SYS_SWAP_USED: &str = "{{SYS_SWAP_USED}}";
pub const PLACEHOLDER_SYS_SWAP_FREE: &str = "{{SYS_SWAP_FREE}}";
pub const PLACEHOLDER_SYS_MEMORY_BUFFERS: &str = "{{SYS_MEMORY_BUFFERS}}";
pub const PLACEHOLDER_SYS_MEMORY_CACHED: &str = "{{SYS_MEMORY_CACHED}}";
// Disk placeholders
pub const PLACEHOLDER_DISK_AVAIL: &str = "{{DISK_AVAIL}}";
pub const PLACEHOLDER_DISK_TOTAL: &str = "{{DISK_TOTAL}}";