Skip to content

Commit c5f003c

Browse files
authored
[DEV] Disable MakeBlockPtr support in sanitizer (#217)
1 parent c0bce2d commit c5f003c

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

triton_viz/clients/sanitizer/sanitizer.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,30 +1857,7 @@ def op_splat_overrider(shape, arg):
18571857
def op_make_block_ptr_overrider(
18581858
base, shape, strides, offsets, tensor_shape, order
18591859
):
1860-
base = SymbolicExpr.from_value(base)
1861-
assert (
1862-
len(shape)
1863-
== len(strides)
1864-
== len(offsets)
1865-
== len(tensor_shape)
1866-
== len(order)
1867-
), f"Length of shape ({len(shape)}), strides ({len(strides)}), offsets ({len(offsets)}), tensor_shape ({len(tensor_shape)}) and order ({len(order)}) must be the same!"
1868-
shape = [SymbolicExpr.from_value(shape_i) for shape_i in shape]
1869-
strides = [SymbolicExpr.from_value(strides_i) for strides_i in strides]
1870-
offsets = [SymbolicExpr.from_value(offset_i) for offset_i in offsets]
1871-
tensor_shape = [
1872-
SymbolicExpr.from_value(tensor_shape_i)
1873-
for tensor_shape_i in tensor_shape
1874-
]
1875-
order = [SymbolicExpr.from_value(order_i) for order_i in order]
1876-
1877-
ret = SymbolicExpr(
1878-
"make_block_ptr", base, shape, strides, offsets, tensor_shape, order
1879-
)
1880-
1881-
ret.dtype_tt = base.get_element_ty()
1882-
1883-
return ret
1860+
raise NotImplementedError("MakeBlockPtr is not supported yet.")
18841861

18851862
def op_tensor_pointer_load_overrider(
18861863
ptr,

0 commit comments

Comments
 (0)