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 RNG determinism when using wrapped arrays. #2307

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Mar 29, 2024

I encountered a case where rand! of a CuArray or an otherwise identical SubArray{CuArray} resulted in different numbers, because of the occupancy API suggesting a slightly different launch configuration.

cc @thomasfaingnaert

@maleadt maleadt added the cuda array Stuff about CuArray. label Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.05%. Comparing base (7455671) to head (b0b6c96).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2307      +/-   ##
==========================================
- Coverage   72.06%   72.05%   -0.02%     
==========================================
  Files         155      155              
  Lines       14923    14921       -2     
==========================================
- Hits        10755    10752       -3     
- Misses       4168     4169       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maleadt maleadt merged commit d6dd9b1 into master Mar 29, 2024
1 check passed
@maleadt maleadt deleted the tb/rng_determinism branch March 29, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda array Stuff about CuArray.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant