Skip to content

Commit

Permalink
Always recompile kernels in perf regression tests in case the user do…
Browse files Browse the repository at this point in the history
…es no specify otherwise
  • Loading branch information
AlexAUT committed Oct 4, 2024
1 parent f866bf1 commit ad1eb5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/perf-kernels/tools/tune_gemm/test_regression.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import tune_gemm

import os
import yaml
import pytest
import warnings
Expand Down Expand Up @@ -115,9 +116,10 @@ def test_matmul_performance_regression(self, config, record_property):
bias_vector = config.get('bias_vector', False)
bias_size = M if bias_vector else 0

tune_gemm.run_bash_command("rm -rf ~/.triton/cache")
tune_gemm.run_bash_command(f"rm -rf {tune_gemm.get_filename_myKernels()}")
# Always compile if the user did not specify
os.environ.setdefault('TRITON_ALWAYS_COMPILE', '1')

tune_gemm.run_bash_command(f"rm -rf {tune_gemm.get_filename_myKernels()}")
tune_gemm.generate_matmul_kernels([runConfig])

gpus = [0]
Expand Down

0 comments on commit ad1eb5a

Please sign in to comment.