1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Print xpu device name. (#9035)

This commit is contained in:
comfyanonymous
2025-07-24 12:06:25 -07:00
committed by GitHub
parent d03ae077b4
commit 69cb57b342

View File

@@ -392,6 +392,8 @@ def get_torch_device_name(device):
except:
allocator_backend = ""
return "{} {} : {}".format(device, torch.cuda.get_device_name(device), allocator_backend)
elif device.type == "xpu":
return "{} {}".format(device, torch.xpu.get_device_name(device))
else:
return "{}".format(device.type)
elif is_intel_xpu():