You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuTile: Tile::shape() fails during compilation to Tile IR #1843
On 8046b9e9, calling Tile::shape() from a kernel fails while compiling to Tile IR:
error: unrecognized macro `unreachable`
For example, this kernel sums each row of a matrix, clips negative sums to zero, and averages their squares. A 2×4 input gives a two-element intermediate tile and a scalar result. The zero tile should have the same shape as the row sums.
The public method contains an unconditional unreachable!(), and the JIT reaches it on a valid call. An intentionally unfinished method would be clearer with unimplemented!(...) in the source and a diagnostic naming the method. Here the dimensions are already available in D.
Reproduced on Linux with Rust 1.98.0 and no visible CUDA device. To reproduce on the base revision, apply only the regression test and run this command from cutile-rs/:
cargo test -p cutile --test tensor_and_matrix_ops compile_tile_shape -- --exact
Activity