Open hecmay opened 4 years ago
This issue remains. I got a Segmentation Fault when running the example provided in Memory Customization.
A = hcl.placeholder((6, 6), "A")
F = hcl.placeholder((3, 3), "F")
def kernel(A, F):
r = hcl.reduce_axis(0, 3)
c = hcl.reduce_axis(0, 3)
return hcl.compute((4, 4),
lambda y, x: hcl.sum(A[y+r, x+c]*F[r, c], axis=[r, c]), "B")
s_xy = hcl.create_schedule([A, F], kernel)
LB = s_xy.reuse_at(A, s_xy[kernel.B], kernel.B.axis[0], "LB")
WB = s_xy.reuse_at(LB, s_xy[kernel.B], kernel.B.axis[1], "WB")
print(hcl.lower(s_xy))
Still have this issue when re-running optical flow experiments. Not sure which part is wrong, cuz that I cannot run gdb on our severs (some libraries are missing)...
A simple minimal test case to reproduce the error.
The
reuse_at
primitive fails to locate the target buffer to be reused.