From 0e6d67168d3a44c9519d5c45294a692e55ea8d42 Mon Sep 17 00:00:00 2001 From: Disty0 Date: Mon, 27 Oct 2025 02:14:41 +0300 Subject: [PATCH] log correct xpu id --- modules/api/xpu_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/xpu_smi.py b/modules/api/xpu_smi.py index 4296a5f33..742393456 100644 --- a/modules/api/xpu_smi.py +++ b/modules/api/xpu_smi.py @@ -24,7 +24,7 @@ def get_xpu_smi(): 'Version': cap['version'], 'Driver': prop.driver_version, 'Platform': prop.platform_name, - 'ID': prop.device_id, + 'ID': hex(prop.device_id).removeprefix("0x"), 'Compute Units': prop.max_compute_units, "VRAM usage": f'{round(100 * load["memory"] / total)}% | {load["memory"]} MB used | {total - load["memory"]} MB free | {total} MB total', "RAM usage": f'{round(100 * ram["used"] / ram["total"])}% | {round(1024 * ram["used"])} MB used | {round(1024 * ram["free"])} MB free | {round(1024 * ram["total"])} MB total',