From 061da6bcf7d369cc2fb55a56b8bdc91fd9bc96d5 Mon Sep 17 00:00:00 2001 From: Kunshang Ji Date: Wed, 4 Feb 2026 16:40:17 +0800 Subject: [PATCH] [XPU] remove common path warning log (#33769) Signed-off-by: Kunshang Ji --- vllm/platforms/__init__.py | 5 ----- vllm/platforms/xpu.py | 9 ++++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/vllm/platforms/__init__.py b/vllm/platforms/__init__.py index 758409ae1..2630df62d 100644 --- a/vllm/platforms/__init__.py +++ b/vllm/platforms/__init__.py @@ -140,11 +140,6 @@ def xpu_platform_plugin() -> str | None: XPUPlatform.dist_backend = dist_backend logger.debug("Confirmed %s backend is available.", XPUPlatform.dist_backend) - else: - logger.warning( - "xccl is not enabled in this torch build, " - "communication is not available." - ) if hasattr(torch, "xpu") and torch.xpu.is_available(): is_xpu = True diff --git a/vllm/platforms/xpu.py b/vllm/platforms/xpu.py index 6e299f30e..3a0ea8b12 100644 --- a/vllm/platforms/xpu.py +++ b/vllm/platforms/xpu.py @@ -34,7 +34,7 @@ class XPUPlatform(Platform): # Intel XPU's device key is "GPU" for Ray. # see https://github.com/ray-project/ray/blob/6a5eb5865eeb9ccf058a79b44f107e327e360673/python/ray/_private/accelerators/intel_gpu.py#L20 # noqa: E501 ray_device_key: str = "GPU" - dist_backend: str = "ccl" # ccl | xccl + dist_backend: str = "xccl" # xccl only device_control_env_var: str = "ZE_AFFINITY_MASK" @classmethod @@ -223,6 +223,13 @@ class XPUPlatform(Platform): @classmethod def get_device_communicator_cls(cls) -> str: + from vllm.utils.torch_utils import supports_xccl + + if not supports_xccl(): + logger.warning( + "xccl is not enabled in this torch build, communication" + " is not available." + ) return "vllm.distributed.device_communicators.xpu_communicator.XpuCommunicator" # noqa @classmethod