Skip to content

Commit

Permalink
Add a comment at the end of autotuning a Triton function
Browse files Browse the repository at this point in the history
I'd like to see what config was chosen at the end of autotuning. Tracking `is the new best config` is a bit hard.

PiperOrigin-RevId: 538465212
  • Loading branch information
PeterZhizhin authored and jax authors committed Jun 7, 2023
1 parent fa099fd commit 01ed663
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jaxlib/gpu/triton.cc
Expand Up @@ -296,6 +296,9 @@ class TritonAutotunedKernelCall : public TritonKernelCallBase {
py::gil_scoped_acquire gil;
configs_.erase(configs_.begin() + 1, configs_.end());

LOG(INFO) << "Finished autotuning function: " << name_ << " best config "
<< configs_[0].description;

// Restore aliased inputs to their original values.
for (auto [input_idx, _, size] : input_output_aliases_) {
CUDA_RETURN_IF_ERROR(
Expand Down

0 comments on commit 01ed663

Please sign in to comment.