B..1 Building

CHARM++ provides a compiler called charmc in your charm/bin/ directory. You can use this compiler to build your AMPI program the same way as other compilers like cc. Especially, to build an AMPI program, a command line option -language ampi should be applied. All the command line flags that you would use for other compilers can be used with charmc the same way. For example:

> charmc -language ampi -c pgm.c -O3
> charmc -language ampi -o pgm pgm.o -lm -O3

Shortcuts to the AMPI compiler are provided. If you have added charm/bin into your $PATH environment variable, simply type mpicc, mpiCC, mpif77, and mpif90 as provided by other MPI implementations.

> mpicc -c pgm.c -g



January 17, 2008
AMPI Homepage
Charm Homepage