To run a parallel BigSim application, CHARM++ provides a utility program called charmrun that starts the parallel execution. For detailed description on how to run a CHARM++ application, refer to the file charm/README in the source code distribution.
To run a BigSim application, one needs to specify the following parameters to charmrun to define the simulated machine size:
For example, to simulate a parallel machine of size 64K as 40x40x40, with one worker processor and one communication processor on each node, and use 100 real processors to run the simulation, the command to be issued should be:
./charmrun +p100 ./hello +x40 +y40 +z40 +cth1 +wth1
To run an AMPI program, one may also want to specify the number of virtual processors to run the MPI code by using +vp. As an example,
./charmrun +p100 ./hello +x40 +y40 +z40 +cth1 +wth1 +vp 128000starts the simulation of a machine of size 40x40x40 with one worker processor in each node, running 128000 MPI tasks (2 MPI tasks on each node), using 100 real processors to run the simulation. In this case, MPI_Comm_size() returns 128000 for MPI_COMM_WORLD. If the +vp option is not specified, the number of virtual processors will be equal to the number of worker processors of the simulated machine, in this case 64000.
November 23, 2009
Charm Homepage