Fix examples and pytest, run ruff (#3230)
Mark inactive issues and pull requests / mark-inactive-30d (push) Has been cancelled
Mark inactive issues and pull requests / mark-inactive-90d (push) Has been cancelled

Co-authored-by: dePaul Miller <23461061+depaulmillz@users.noreply.github.com>
This commit is contained in:
dePaul Miller
2026-05-21 11:05:38 +08:00
committed by GitHub
co-authored by dePaul Miller
parent 982cb9e718
commit 546c3efa89
11 changed files with 342 additions and 159 deletions
@@ -38,11 +38,10 @@ Tests various configurations of:
"""
import pytest
import torch
import cutlass
from blackwell.rmsnorm import (
from blackwell.kernel.rmsnorm.rmsnorm import (
run,
get_sm_version,
supports_cluster,
@@ -104,7 +103,9 @@ class TestRMSNormCorrectness:
class TestRMSNormClusterPath:
"""Test the cluster path for large N (SM90+/SM100 only)."""
@pytest.mark.skipif(not supports_cluster(), reason="Cluster not supported on this GPU")
@pytest.mark.skipif(
not supports_cluster(), reason="Cluster not supported on this GPU"
)
@pytest.mark.parametrize("N", [32768, 65536])
def test_cluster_path_correctness(self, N):
"""Test cluster path produces correct results."""
@@ -119,6 +120,7 @@ class TestRMSNormClusterPath:
benchmark=False,
)
class TestRMSNormLargeN:
"""Test RMSNorm with large N values."""
@@ -151,7 +153,6 @@ class TestRMSNormLargeN:
)
class TestRMSNormEdgeCases:
"""Test edge cases for RMSNorm."""
@@ -197,4 +198,4 @@ class TestRMSNormFloat32:
tolerance=1e-4, # Tighter tolerance for FP32
skip_ref_check=False,
benchmark=False,
)
)