Setting Up a MPI Compiler
The Message Passing Interface (MPI) compilers installed in the Linux cluster can be found in /usr/usc/openmpi/default. The compilers with the prefix ‘mx’ generate code that use the Myrinet interconnects.
When logging in, source the setup.csh or setup.sh of the specific MPI compiler that you want to use. You do not need to source any other setup file if you are going to use an MPI compiler. The various environment and path variables are preset when you source the setup.csh file.
For example, if you want to use the default compiler with the tcsh or csh shell, you would type:
or if you want to use the default compiler with the bash or sh shell, you would type:
The default compiler is the default version of the GCC compiler.
If you wish to use the same compiler repeatedly, you can include the above source command line to your shell startup file (.login or .bash_profile) so that you do not have to source it manually every time you login.
Additional information on how HPC uses the MPI standard can be found on the Message Passing Interface (MPI) page. General information about MPI can be found on the Official Message Passing Interface (MPI) website. To get help with using MPI on HPC, send an email to email@example.com.