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 FillRandomNormal for odd number of length #4338

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

WeiqunZhang
Copy link
Member

In both CUDA and HIP, the length must be even for the normal distribution generator we use. This PR fixes it by generating the last one on the host if the total length is odd.

In both CUDA and HIP, the length must be even for the normal distribution
generator we use. This PR fixes it by generating the last one on the host if
the total length is odd.
@WeiqunZhang WeiqunZhang requested a review from ajnonaka February 19, 2025 01:57
@WeiqunZhang WeiqunZhang enabled auto-merge (squash) February 19, 2025 02:04
Copy link
Contributor

@ajnonaka ajnonaka left a comment

Choose a reason for hiding this comment

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

Thanks Weiqun!

@WeiqunZhang WeiqunZhang merged commit 28a1e19 into AMReX-Codes:development Feb 19, 2025
75 checks passed
@WeiqunZhang WeiqunZhang deleted the random_normal branch February 19, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants