merge: modules/api/gpu.py

This commit is contained in:
vladmandic
2026-03-12 14:16:50 +01:00
parent b388f7c582
commit 62dcf352eb
+1
View File
@@ -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: