montepython_public icon indicating copy to clipboard operation
montepython_public copied to clipboard

Restart with MPI

Open miguelzuma opened this issue 7 years ago • 2 comments

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

miguelzuma avatar Jun 22 '17 21:06 miguelzuma

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

carlosggarcia avatar Oct 30 '17 08:10 carlosggarcia

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

brinckmann avatar Mar 12 '18 14:03 brinckmann