Repository navigation
Conversation
Return the extents carried by the tile type. Expand a const-generic array used as a value when generating Rust for each rank, so the method can return all its dimensions. Exercise the method on a vector of row sums and verify the mean square of their positive parts for two rectangular matrices. Signed-off-by: Dmitry Zheltkov <[email protected]> Signed-off-by: dzheltkov <[email protected]>
dzheltkov
marked this pull request as ready for review
November 20, 2026 11:19
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1843.
Tile<E, D>::shape()now returns the dimensions inD. Its previousunreachable!()body was reachable whenever a kernel called the method. The rank-specialization macro now expandsDin an expression to the array of extents (for example,[D0, D1]at rank two). An explicit localShape<D>lets the JIT use the result directly as a function argument.The regression reduces a matrix to its row sums and computes the mean square of their positive parts. It uses the intermediate vector's shape both to construct a matching zero tile and to read the number of rows.
Verification
cutile-rs/scripts/run_all.shpassed, including the CPU and GPU suites and all eight benchmark smoke tests. Of the examples, 24 passed and five were skipped.