mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "[Triton] [Inductor] Restrict subprocess autotuning to just Triton (#162688)"
This reverts commit 082d3dd9d53a60deb022e203892f0c492cf2cce7. Reverted https://github.com/pytorch/pytorch/pull/162688 on behalf of https://github.com/mlazos due to H100 tests didn't run internally for some reason, rerun with ciflow/h100 ([comment](https://github.com/pytorch/pytorch/pull/162688#issuecomment-3300634763))
This commit is contained in:
@ -3248,13 +3248,8 @@ class AlgorithmSelectorCache(PersistentCache):
|
||||
|
||||
# only benchmark triton kernel in sub process for now.
|
||||
# ATen/Extern kernel are still benchmarked in the current process.
|
||||
extern = []
|
||||
triton = []
|
||||
for c in choices:
|
||||
if isinstance(c, TritonTemplateCaller):
|
||||
triton.append(c)
|
||||
else:
|
||||
extern.append(c)
|
||||
extern = [c for c in choices if isinstance(c, ExternKernelCaller)]
|
||||
triton = [c for c in choices if not isinstance(c, ExternKernelCaller)]
|
||||
|
||||
timings = cls.benchmark_in_current_process(
|
||||
extern, input_nodes, layout, input_gen_fns, hint_override=hint_override
|
||||
|
Reference in New Issue
Block a user