Skip to content

Commit

Permalink
Integrate Triton up to [6fa4f504](https://github.com/openai/triton/co…
Browse files Browse the repository at this point in the history
  • Loading branch information
vwbaker authored and Google-ML-Automation committed Oct 2, 2024
1 parent fa66b2d commit c7b8cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jax_triton/triton_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,8 @@ def triton_kernel_call_lowering(
named_args = dict(unsafe_zip(fn.arg_names, args))

if isinstance(fn, autotuner.Autotuner):
if any(idx not in fn.key_idx for idx, _, _ in scalar_args):
key_idxs = [fn.arg_names.index(k) for k in fn.keys]
if any(idx not in key_idxs for idx, _, _ in scalar_args):
logging.warning(
"Auto-tuning key does not include all scalar arguments. "
"We may perform redundant auto-tuning."
Expand Down

0 comments on commit c7b8cd5

Please sign in to comment.