Skip to content

Commit

Permalink
[Docs] Document the TRITON_PRINT_AUTOTUNING flag added in #3411. (#3542)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebar authored Apr 2, 2024
1 parent 6eadbce commit e14516a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/triton/runtime/autotuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ def kernel(x_ptr, x_size, **META):
This means that whatever value the kernel updates will be updated multiple times.
To avoid this undesired behavior, you can use the `reset_to_zero` argument, which
resets the value of the provided tensor to `zero` before running any configuration.
If the environment variable :code:`TRITON_PRINT_AUTOTUNING` is set to
:code:`"1"`, Triton will print a message to stdout after autotuning each
kernel, including the time spent autotuning and the best configuration.
:param configs: a list of :code:`triton.Config` objects
:type configs: list[triton.Config]
:param key: a list of argument names whose change in value will trigger the evaluation of all provided configs.
Expand Down

0 comments on commit e14516a

Please sign in to comment.