baudren / montepython_public

Public repository for the Monte Python Code
MIT License
65 stars 115 forks source link

Restart with MPI #99

Open miguelzuma opened 7 years ago

miguelzuma commented 7 years ago

Hi,

I need to restart an MCMC in a cluster where I run with MPI. If for instance I run the following command in a folder with 6 previous chains (that I want to restart)

srun -n 6 -c 4 python montepython/MontePython.py run -r chains/restart_experiment/2017-06-21_50000__1.txt

MP will create 6 chains, but all from 2017-06-21_50000__1.txt.

Is there any way to have each chain in the folder be restarted as part of the process in the same call? It sounds like it should be very similar to the same command when the chains are created anew, and which which works just fine.

Thanks

carlosggarcia commented 6 years ago

You can try to use a for loop or GNU parallel.

See "Slurm task per job" and "GNU Parallel" sections in https://rcc.uchicago.edu/docs/tutorials/kicp-tutorials/running-jobs.html

brinckmann commented 6 years ago

I have fixed the restart option for MPI and the change will be included in the upcoming release. Best, Thejs