mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 08:44:33 +02:00
merge: modules/api/gpu.py
This commit is contained in:
@@ -6,6 +6,7 @@ device = None
|
||||
|
||||
|
||||
def get_gpu_status():
|
||||
"""Return real-time GPU metrics (utilization, temperature, memory, clock speeds) via vendor-specific APIs (NVML, ROCm SMI, XPU SMI)."""
|
||||
global device # pylint: disable=global-statement
|
||||
if device is None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user