-
Notifications
You must be signed in to change notification settings - Fork 222
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
seed! is not thread safe #1158
Comments
You can't
|
maybe a new |
Hmm, I understand why but I'm not inclined to, since that applies to so many CUDA.jl objects. We also can't guarantee to be able to make an exact copy, since there's lots of hidden state (e.g. with CURAND we can't recover the seed). |
CPU code works fine:
corresponding GPU code segfaults:
it might be specific to
@threads
because@spawn
seems to work:The text was updated successfully, but these errors were encountered: