* Updated for Mac OS 10.7 (Lion) - August, 2011 * Message Passing Interface (MPI) is an application interface that allows processes to communicate by sending and receiving messages. In essence, it facilitates communication when multiple computers/processors/cores are performing distributed calculations. For people familiar with computer clusters, MPI is the interface that helps the compute nodes talk to each other. I don't plan to provide detailed information about MPI and programming practices for using MPI here, but rather the purpose of this page is to help you install one of the freely available MPI implementations (Open MPI) on a computer running Mac OS X. Why might you consider installing Open MPI? First, many programs that were designed to run distributed across several computers using MPI can now be run on a multi-core modern desktop computer. To me, this is the biggest motivation, since I can test software more easily on my desktop (or laptop) machine than on a cluster. Second, multi-core computers are the future. Almost any machine purchased in the last year or two has multiple processor cores. Why not put them to use? Anyway, as I said above, I'm here to provide instructions on installing Open MPI on a Mac. I am assuming you're running a recent version of Mac OS X (Lion, Snow Leopard or Leopard) and that you have already installed a compiler suite. If you don't have any compilers installed, you might want to see my page on installing the GNU compilers. The installation of Open MPI on Mac is surprisingly easy.
mpicc, mpicxx, mpif77, mpif90) and run MPI-enabled programs with mpiexec. If you try to use the new Open MPI executables and they are not found, it may be that /usr/local/bin (or wherever you specified with the --prefix flag in the configure stage) is not in your $PATH environment variable. You can confirm this by typingecho $PATHif you do not see /usr/local/bin listed between the colons, you will need to add it. I describe how to do this at the end of my page on installing the GNU compilers.For assistance on linking to Open MPI or running MPI-enabled software, check out the Open MPI documentation. |