We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac339d0 commit 3ddbe3aCopy full SHA for 3ddbe3a
helion/language/tile_ops.py
@@ -153,16 +153,8 @@ def _(tile: torch.SymInt) -> torch.SymInt:
153
154
@_decorators.codegen(tile_id)
155
def _(state: CodegenState) -> ast.AST:
156
- t = state.proxy_arg(0)
157
- env = CompileEnvironment.current()
158
- assert isinstance(t, torch.SymInt)
159
- index = env.get_block_id(t)
160
- assert index is not None
161
- # disable_flatten:
162
- # The functions in this file can't be used in flattened loops.
163
- env.config_spec.flatten_loops.disable_block_id(index)
+ index = _disable_flatten_get_tile(state.proxy_arg(0))
164
offset = state.codegen.offset_var(index)
165
-
166
block_size = state.device_function.block_size_var(index)
167
if block_size is None:
168
expr_str = offset
0 commit comments