From 5eb98f00927ace00b6b3d01ed9c76b113fc4ec9f Mon Sep 17 00:00:00 2001 From: Simon Lui <502929+simonlui@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:51:14 -0700 Subject: [PATCH] Exempt IPEX from non_blocking previews fixing segmentation faults. (#3708) --- comfy/model_management.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy/model_management.py b/comfy/model_management.py index dbd0dbac..dbb33d07 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -659,6 +659,8 @@ def supports_cast(device, dtype): #TODO def device_supports_non_blocking(device): if is_device_mps(device): return False #pytorch bug? mps doesn't support non blocking + if is_intel_xpu(): + return False if args.deterministic: #TODO: figure out why deterministic breaks non blocking from gpu to cpu (previews) return False if directml_enabled: