From 999dd8b49031a7bc0f98a0fe88a1ddc2ead6a754 Mon Sep 17 00:00:00 2001 From: Sundaresan G <113318447+Sundaresan-G@users.noreply.github.com> Date: Wed, 5 Aug 2026 12:40:17 +0530 Subject: [PATCH] [XPU] Alias is_current_stream_capturing to XPU in cuda wrapper (#50526) Signed-off-by: Sundaresan-G Co-authored-by: Kunshang Ji --- vllm/v1/worker/xpu_model_runner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vllm/v1/worker/xpu_model_runner.py b/vllm/v1/worker/xpu_model_runner.py index 77edbba58f..f6747cb349 100644 --- a/vllm/v1/worker/xpu_model_runner.py +++ b/vllm/v1/worker/xpu_model_runner.py @@ -60,4 +60,5 @@ def _torch_cuda_wrapper(): torch.cuda.graph = partial(torch.xpu.graph) torch.cuda.CUDAGraph = torch.xpu.XPUGraph torch.cuda.graph_pool_handle = partial(torch.xpu.graph_pool_handle) + torch.cuda.is_current_stream_capturing = torch.xpu.is_current_stream_capturing yield