warp icon indicating copy to clipboard operation
warp copied to clipboard

[BUG] `tile_min()` returns 0 when all tile elements are equal

Open daedalus5 opened this issue 7 months ago • 0 comments

Bug Description

@wp.kernel
def test_kernel(x: wp.array2d(dtype=float)):
    t = wp.tile_load(x, shape=(3, 3))
    min = wp.tile_min(t)
    print(min)

x = wp.ones((3,3), dtype=float)

wp.launch_tiled(test_kernel, dim=1, inputs=[x], block_dim=TILE_DIM)

prints [0] = tile(shape=(1), storage=register)

System Information

No response

daedalus5 avatar May 13 '25 15:05 daedalus5