From 3022989bad17cc86a40a22fb690aca1c2cc29dda Mon Sep 17 00:00:00 2001 From: Mick Date: Sun, 11 Oct 2026 08:54:37 +0800 Subject: [PATCH] [diffusion] CI: skip the LTX-2 RMSNorm-modulation guard test off the CUDA platform (#43574) Co-authored-by: Mick Co-authored-by: Claude Opus 5.5 --- .../test/unit/test_ltx2_rmsnorm_modulate_fallback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/sglang/multimodal_gen/test/unit/test_ltx2_rmsnorm_modulate_fallback.py b/python/sglang/multimodal_gen/test/unit/test_ltx2_rmsnorm_modulate_fallback.py index c2fa083e5f..23ccd5b67b 100644 --- a/python/sglang/multimodal_gen/test/unit/test_ltx2_rmsnorm_modulate_fallback.py +++ b/python/sglang/multimodal_gen/test/unit/test_ltx2_rmsnorm_modulate_fallback.py @@ -21,9 +21,11 @@ import pytest import torch from sglang.kernels.ops.diffusion import can_use_fused_rmsnorm_modulation +from sglang.kernels.ops.diffusion.common.platform import is_cuda -@unittest.skipUnless(torch.cuda.is_available(), "needs CUDA") +# Not torch.cuda.is_available(): ROCm answers it too, and has no such kernel. +@unittest.skipUnless(is_cuda(), "the fused kernel is CUDA-only") class TestFusedRmsNormModulationGuard(unittest.TestCase): """The guard answers exactly the question the launcher would raise on."""