[XPU] Fix spec-decode UTs under tests/v1/spec_decode (#38491)

Signed-off-by: Yan Ma <yan.ma@intel.com>
Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Yan Ma
2026-04-11 01:31:00 +00:00
committed by GitHub
co-authored by Kunshang Ji
parent af661a182d
commit 0f3ce4c74b
3 changed files with 2 additions and 14 deletions
@@ -15,8 +15,8 @@ DEVICE_TYPE = current_platform.device_type
# Skip if no CUDA - Triton kernel requires GPU
pytest.importorskip("triton")
if not torch.cuda.is_available():
pytest.skip("CUDA required for EAGLE kernel tests", allow_module_level=True)
if not current_platform.is_cuda_alike() and not current_platform.is_xpu():
pytest.skip("CUDA/XPU required for EAGLE kernel tests", allow_module_level=True)
def _reference_eagle_step_slot_mapping(