Skip to main content

more options


Command Line

If the program contains MPI calls and MPICH is installed on the machine (true for all Linux CTC machines with interactive access), one may type

>  gcc parhello.c -lmpich -o parhello

or

>  ifort parhello.f -lmpich -o parhello

If the program contains MPI calls and MPICH is installed on the machine (true for all Linux CTC machines with interactive access), one may type

>  gcc parhello.c -lmpich -o parhello

or

>  ifort parhello.f -lmpich -o parhello

This is sufficient because the mpi.h and mpif.h header files are in /usr/local/include which is on your default include path. Similarly, the default library path includes /usr/local/lib, where libmpich.a lives.