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 bug in #451 #453

Merged
merged 4 commits into from
Feb 15, 2023
Merged

Fix bug in #451 #453

merged 4 commits into from
Feb 15, 2023

Conversation

nkoppel
Copy link
Contributor

@nkoppel nkoppel commented Feb 15, 2023

Closes #451 by retaining broadcasting in reduction operations, computing elems_per_thread as the product of all dims that are both broadcasted and summed, and computing chunk_size as physical_numel / dst_physical_numel. Also adds the test in #451 and renames internal_reshapes to reduction_utils.

Copy link
Owner

@coreylowman coreylowman left a comment

Choose a reason for hiding this comment

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

nice, thanks for the quick fix!

@coreylowman coreylowman merged commit 73905f1 into coreylowman:main Feb 15, 2023
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.

BUG: Example 08 not runnable with Cuda
2 participants