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

Duplicated random number sequences on all processes #10

Open
piyueh opened this issue Jun 6, 2017 · 0 comments
Open

Duplicated random number sequences on all processes #10

piyueh opened this issue Jun 6, 2017 · 0 comments

Comments

@piyueh
Copy link

piyueh commented Jun 6, 2017

In the basic MPI example (Send/Recv), we use the same seed to initialize random number generators (here) on all processes. It will cause the random number sequences generated on all MPI processes to be the same with each others, won't it?

If it will, then that means we are not using more random points to improve the accuracy when we use more MPI processes. However, the tutorial says:

This is a more accurate, because each node is running as many iterations as the singe node in the serial code ran.

which may not be true in this case, because each MPI process generates exactly the same set of random points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant