There was an error while loading. Please reload this page.
1 parent f9f27da commit 629feb2Copy full SHA for 629feb2
1 file changed
lecture1/triton_square.py
@@ -3,6 +3,10 @@
3
import triton.language as tl
4
import torch
5
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
+
10
@triton.jit
11
def square_kernel(output_ptr, input_ptr, input_row_stride, output_row_stride, n_cols, BLOCK_SIZE: tl.constexpr):
12
# The rows of the softmax are independent, so we parallelize across those
0 commit comments