Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Fix padding assertion in sparse Gram evaluation #1521

Merged
merged 1 commit into from
May 17, 2023

Conversation

mfoerste4
Copy link
Collaborator

A assertion could fail if the result kernel matrix is column major but has only a single row. In this case the old implementation identified the matrix as row major instead and the following stride-check failed.

Now the check is extended to identify both layouts. The only case where it cannot be exactly determined is a 1x1 matrix in which the following code just picks column major as default.
CC @cjnolet @tfeher

@mfoerste4 mfoerste4 requested a review from a team as a code owner May 17, 2023 16:15
@github-actions github-actions bot added the cpp label May 17, 2023
@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 17, 2023
@cjnolet
Copy link
Member

cjnolet commented May 17, 2023

/merge

@rapids-bot rapids-bot bot merged commit 5392a91 into rapidsai:branch-23.06 May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

2 participants