Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def benchmark(B, M, N, K, dtype, provider):
# Maximum across onednn=600, triton=1000
# For onednn and triton: Some configs increase performance with warmup as a step function, but some
# slowly decrease with saturation. Performance is best at 150-200ms range, but we want stable, not just best
torch.xpu.empty_cache()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the other benchmarks we run, shouldn't we do the same ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we do it in a common place, maybe get_empty_cache_for_benchmark?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the implementation so it is common for all of the benchmarks

do_bench = benchmark_suite.get_do_bench(n_warmup=1000, n_repeat=10, quantiles=[0.5, 0.0, 1.0])
res_dtype = torch.float32 if dtype.is_floating_point else torch.int32
if dtype.is_floating_point:
Expand Down
Loading