8000 [inductor] Rename knobs > triton_knobs in static_cuda_launcher (#153189) · pytorch/pytorch@658aea9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 658aea9

Browse files
danzimmpytorchmergebot
authored andcommitted
[inductor] Rename knobs > triton_knobs in static_cuda_launcher (#153189)
Summary: A follow up from #152457 since I didn't address the comment then Test Plan: CI Differential Revision: D74421432 Pull Request resolved: #153189 Approved by: https://github.com/jamesjwu
1 parent fbb6412 commit 658aea9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torch/_inductor/runtime/static_cuda_launcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import Any, Optional
44
from typing_extensions import Unpack
55

6-
from .triton_compat import ASTSource, CompiledKernel, knobs
6+
from .triton_compat import ASTSource, CompiledKernel, knobs as triton_knobs
77

88

99
class StaticallyLaunchedCudaKernel:
@@ -47,12 +47,12 @@ def __init__(self, kernel: CompiledKernel) -> None:
4747

4848
self.hash = kernel.hash
4949

50-
if knobs is None:
50+
if triton_knobs is None:
5151
launch_enter = kernel.__class__.launch_enter_hook
5252
launch_exit = kernel.__class__.launch_exit_hook
5353
else:
54-
launch_enter = knobs.runtime.launch_enter_hook
55-
launch_exit = knobs.runtime.launch_exit_hook
54+
launch_enter = triton_knobs.runtime.launch_enter_hook
55+
launch_exit = triton_knobs.runtime.launch_exit_hook
5656

5757
if launch_enter is not None or launch_exit is not None:
5858
raise NotImplementedError(

0 commit comments

Comments
 (0)
0