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

[BUG] MPI version does not run the specified number of independent replicates #428

Open
davidcerny opened this issue Feb 12, 2024 · 0 comments

Comments

@davidcerny
Copy link
Contributor

Describe the bug
The nruns argument of the mcmc() function is supposed to specify the number of independent replicates. This works fine with the single-thread version of RevBayes, but if the analysis is executed using the MPI version, some of the replicates are apparently initiated with the same random seed. This makes them draw exactly the same samples, producing redundant output and reducing the number of independent replicates below that specified by the user.

To reproduce
This zipped directory contains a script specifying 10 independent runs and all the data required to run it. One absolute path has to be changed in the script. When I execute it using the MPI version of RevBayes with one core per run (mpirun -np 10 ./rb-mpi), the analysis will indeed start with 10 runs, but of these, no more than 3 to 7 will actually be independent of one another.

Expected behavior
The replicates should all be independent of one another.

Computer info
macOS 14.3 (Sonoma), RevBayes 1.2.2, latest version of the development branch (rapture-2386-g54c6ba) and Red Hat Enterprise Linux 8.4 (Ootpa), RevBayes 1.2.2, development branch, commit rapture-2364-ga6a40c.

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