4 Executing CHARM++ Programs

When compiling CHARM++ programs, the charmc linker produces both an executable file and a program called charmrun, which is used to load the executable onto the parallel machine.

To run a CHARM++ program named ``pgm'' on four processors, type:

charmrun pgm +p4

Programs built using the network version of CHARM++ can be run alone, without charmrun. This restricts you to using the processors on the local machine, but it is convenient and often useful for debugging. For example, a CHARM++ program can be run on one processor in the debugger using:

gdb pgm

If the program needs some environment variables to be set for its execution on compute nodes (such as library paths), they can be set in .charmrunrc under home directory. charmrun will run that shell script before running the executable.



Subsections

April 10, 2012
Charm Homepage