Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tile-ai/tilelang
/ ref_program
Function
ref_program
testing/python/language/test_tilelang_language_atomic.py:359–362 ·
view source on GitHub ↗
(A)
Source
from the content-addressed store, hash-verified
357
import
torch
358
359
def
ref_program(A):
360
for
i in range(M):
361
for
j in range(N):
362
A[i, j] += 1
363
364
A = torch.zeros(M, N, dtype=torch.float32).cuda()
365
ref_A = A.clone()
Callers
7
run_tile_atomic_add_expr
Function · 0.70
run_tile_atomic_add_scalar
Function · 0.70
run_atomic_max
Function · 0.70
run_atomic_min
Function · 0.70
run_tile_atomic_max
Function · 0.70
run_tile_atomic_min
Function · 0.70
run_tile_atomic_max_expr
Function · 0.70
Calls
2
max
Function · 0.50
min
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…