Skip to content

Commit

Permalink
Merge pull request #26522 from andportnoy:aportnoy/mosaic-gpu-test-sm90a
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 726899717
  • Loading branch information
Google-ML-Automation committed Feb 14, 2025
2 parents 5ab8c5a + ae9389d commit 12d533f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/mosaic/gpu_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ def setUp(self):
self.enter_context(ir.Location.unknown())


class Sm90ATestCase(TestCase, jtu.CudaArchSpecificTest):

def setUp(self):
self.skip_unless_sm90a()
super().setUp()


class TestUtilTest(TestCase):

def test_copy_basic(self):
Expand Down Expand Up @@ -2425,6 +2432,9 @@ def add(

self.assertArraysEqual(jax.jit(kernel)(x, y), x + y + y)


class MosaicGpuDialectSm90ATest(Sm90ATestCase, jtu.JaxTestCase):

# TODO(dasenov): Add a test for kNoSwizzle, i.e. all swizzling modes.
@parameterized.parameters(mgpu_dialect.SwizzlingMode.k32ByteSwizzle,
mgpu_dialect.SwizzlingMode.k64ByteSwizzle,
Expand Down

0 comments on commit 12d533f

Please sign in to comment.