Using mpich based on Gnu or Portland Compilers
The mpich compilers compilers include mpicc, mpiCC, mpicxx, mpif77 and mpif90. They have been built against the gnu 4.1.2 compilers on ted, the 7.1-1 Portland Compilers on ted and the 7.0-7 Portland Compilers on micah. I will refer to the Portland Compilers as pgi compilers.
The mpich compilers are located in
|on ted||built on gnu||/opt/openmpi/bin|
|built on pgi||/share/apps/bin|
|on mich||built on pgi||/share/apps/openmpi.pgi/bin|
At the top of your program include the following:
|For ted and gnu built mpich|
|For ted and pgi built mpich|
|For micah and pig built mpich|
|XX yourcode -o yourprogram|
where XX is the compiler, yourcode is your uncompiled code and yourpgrogram is the output.
If I were compiling a c program on ted and wanted to use the mpich compilers based on the Portland compilers and my uncompiled program was mad.c, my line might be
/share/apps/bin/mpicc mad.c -o mad
Margaret Doll 6-5-2007