Skip to content

Commit 4b62333

Browse files
xiaohuguo2023naromero77amd
authored andcommitted
enable pipeline
1 parent 5515cea commit 4b62333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_inductor/codegen/triton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,7 @@ def codegen_body(self):
35993599
"rsplit_end" if self.cooperative_reduction else f"{prefix}numel"
36003600
)
36013601
self.body.writeline(
3602-
f"for {prefix}offset in range({loop_start}, {loop_end}, {prefix.upper()}BLOCK):"
3602+
f"for {prefix}offset in tl.range({loop_start}, {loop_end}, {prefix.upper()}BLOCK, num_stages = 2):"
36033603
)
36043604
with self.body.indent(offset=level + 1):
36053605
self.iteration_ranges_codegen_header(tree, self.body)

0 commit comments

Comments
 (0)