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

Use default init in reduction #2351

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

akifcorduk
Copy link
Member

During reduction in device code (reduction.cuh), the value assigned in the residual threads during last stage are zero initilized. However, if we want to reduce some custom type, it might not have the appropriate constructor. Thus, this PR makes the change so that we call the default constructor for the residual values.

@akifcorduk akifcorduk requested a review from a team as a code owner June 3, 2024 11:35
Copy link

copy-pr-bot bot commented Jun 3, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions bot added the cpp label Jun 3, 2024
@akifcorduk akifcorduk added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Jun 3, 2024
@dantegd
Copy link
Member

dantegd commented Jun 4, 2024

/ok to test

Copy link
Member

@dantegd dantegd left a comment

Choose a reason for hiding this comment

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

change lgtm

@akifcorduk
Copy link
Member Author

/merge

Copy link
Contributor

@tfeher tfeher left a comment

Choose a reason for hiding this comment

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

LGTM.

@tfeher
Copy link
Contributor

tfeher commented Jun 5, 2024

/merge

@rapids-bot rapids-bot bot merged commit f56bfb6 into rapidsai:branch-24.08 Jun 5, 2024
69 checks passed
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.

3 participants