CosmoMC multiprocessor run
Posted: July 09 2019
Hello,
I am trying to run the CosmoMC the first time on my personal computer ASUS UX430UN to get a propose matrix for my future work. I am thinking of running only 2 chains on my 4 CPUs.
The first command I try is
and I have in the test.ini file. This gives 4 .txt files in the /chains folder. Then I try , hoping that it will give (4 CPUs) / (2 per chain) = 2 chains in total, but when I check the /chains folder, I still find 4 chains are being processed, which is not what I am looking for.
Then I try only
and leaving unchanged. It produces only 1 chain in the /chains subdirectory, which is not what I want either. More interestingly, when I check the CPU tab in the system monitor, of those 8 CPUs/threads (I think these are vCPUs?), only 2 are working on MCMC. I thought it should go as (8 vCPUs) / (2 threads) = 4 chains?
https://imgur.com/a/TQEjHIz
The problem I have is, how many CPUs do I actually have? And also, which command and which line in the .ini file should I modify to achieve my initial goal of 2 chains in total? Or maybe there is something I can do that can further decrease the time needed to finish my first CosmoMC run?
Any suggestion will be very helpful!
Chien Lin
I am trying to run the CosmoMC the first time on my personal computer ASUS UX430UN to get a propose matrix for my future work. I am thinking of running only 2 chains on my 4 CPUs.
The first command I try is
Code: Select all
mpirun -np 4 ./cosmomc test.ini
Code: Select all
num_threads=0
Code: Select all
num_threads=2
Then I try only
Code: Select all
./cosmomc test.ini
Code: Select all
num_threads=2
https://imgur.com/a/TQEjHIz
The problem I have is, how many CPUs do I actually have? And also, which command and which line in the .ini file should I modify to achieve my initial goal of 2 chains in total? Or maybe there is something I can do that can further decrease the time needed to finish my first CosmoMC run?
Any suggestion will be very helpful!
Chien Lin