Skip to content

Commit 629feb2

Browse files
committed
Include the cmd for the interpret mode in triton_square.py
1 parent f9f27da commit 629feb2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lecture1/triton_square.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import triton.language as tl
44
import torch
55

6+
# if @triton.jit(interpret=True) does not work, please use the following two lines to enable interpret mode
7+
# import os
8+
# os.environ["TRITON_INTERPRET"] = "1"
9+
610
@triton.jit
711
def square_kernel(output_ptr, input_ptr, input_row_stride, output_row_stride, n_cols, BLOCK_SIZE: tl.constexpr):
812
# The rows of the softmax are independent, so we parallelize across those

0 commit comments

Comments
 (0)