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

Fix stream-k kernels when K==0, allow beta*C calculation #1399

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

AlexBrownAMD
Copy link
Contributor

Fixes a bug causing problems with K=0 to end early. With this change if K==0 only main loop is skipped, and beta*C will be calculated.

Copy link
Member

@neoblizz neoblizz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

@bethune-bryant bethune-bryant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Comment on lines +3034 to +3038
size_t z = 1;
for(size_t i = 0; i < problem.boundIndices().size(); ++i)
{
z *= problem.boundSize(i);
}
Copy link
Contributor

@ellosel ellosel Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is probably a way to do this in one line using std::reduce assuming there is a way to iterate over whatever boundSize refers to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants