cosmomc with g95 and mpi
Posted: July 30 2005
Has anyone ran cosmomc when compiled with g95 with MPI?
I am finding that everything works great without MPI. With MPI the first chain goes ahead with no problems, but as far as I can tell the getarg() call which is supposed to pick up the command line options is getting totally screwed up. For the second chain that is getting spawned, the GetParam(1) call in driver.F90 is returning the machine name. I noticed that getarg() in g95 was a fairly recent addition, so it is possible that it is still buggy. It seems equally plausible that I am doing something silly, though.
My current 'fix' is to just hardwire in the parameter file name and the null string that MPI wants the number of chains to be, so if this is a really stupid thing to do I would appreciate any comments.
I am finding that everything works great without MPI. With MPI the first chain goes ahead with no problems, but as far as I can tell the getarg() call which is supposed to pick up the command line options is getting totally screwed up. For the second chain that is getting spawned, the GetParam(1) call in driver.F90 is returning the machine name. I noticed that getarg() in g95 was a fairly recent addition, so it is possible that it is still buggy. It seems equally plausible that I am doing something silly, though.
My current 'fix' is to just hardwire in the parameter file name and the null string that MPI wants the number of chains to be, so if this is a really stupid thing to do I would appreciate any comments.