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

Re-initialize the random seed every time. #932

Merged
merged 1 commit into from
May 27, 2021
Merged

Re-initialize the random seed every time. #932

merged 1 commit into from
May 27, 2021

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented May 27, 2021

Turns out we can't rely on the shared memory persisting across launches,
so we need to initialize the key at every launch. That also implies we
need a fresh seed for every launch, because otherwise two subsequent
launches would generate the same numbers. To avoid having to upload a
seed before every launch, use the clock register as a source of
randomness to initialize the key with.

Should fix the sporadic failures seed on CI.

Turns out we can't rely on the shared memory persisting across launches,
so we need to initialize the key at every launch. That also implies we
need a fresh seed for every launch, because otherwise two subsequent
launches would generate the same numbers. To avoid having to upload a
seed before every launch, use the `clock` register as a source of
randomness to initialize the key with.
@maleadt maleadt added bugfix This gets something working again. ci Everything related to continuous integration. labels May 27, 2021
@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

Merging #932 (f25117a) into master (35e2186) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #932      +/-   ##
==========================================
+ Coverage   76.85%   76.87%   +0.01%     
==========================================
  Files         121      121              
  Lines        7709     7705       -4     
==========================================
- Hits         5925     5923       -2     
+ Misses       1784     1782       -2     
Impacted Files Coverage Δ
src/compiler/execution.jl 88.72% <ø> (-0.33%) ⬇️
lib/cusolver/CUSOLVER.jl 83.33% <0.00%> (+4.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35e2186...f25117a. Read the comment docs.

@maleadt maleadt merged commit 537be6c into master May 27, 2021
@maleadt maleadt deleted the tb/random_seed branch May 27, 2021 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This gets something working again. ci Everything related to continuous integration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant