Skip to content

Commit 72b111a

Browse files
bchetiouijax authors
authored andcommitted
[Mosaic GPU] Disable XLA autotuning in matmul_test.py.
This slows down correctness tests for no value whatsoever. PiperOrigin-RevId: 637805645
1 parent 97f9a5e commit 72b111a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/mosaic/matmul_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# ==============================================================================
1515
"""Test different parameterizations of a matmul."""
1616

17+
import os
18+
1719
from absl.testing import absltest, parameterized
1820
from jax._src import config
1921
from jax._src import test_util as jtu
@@ -28,6 +30,8 @@
2830

2931
config.update("jax_traceback_filtering", "off")
3032
config.parse_flags_with_absl()
33+
os.environ["XLA_FLAGS"] = (
34+
os.environ.get("XLA_FLAGS", "") + " --xla_gpu_autotune_level=0")
3135

3236

3337
class MatmulTestCase(jtu.JaxTestCase):

0 commit comments

Comments
 (0)