How do I compile my MPI code?


LAM/MPI will compile C, C++ and Fortran code

To compile your C code use:
% mpicc source (This will create an a.out executable)
or
% mpicc -o executable source

To compile your Fortan code use:
% mpif77 source
or
% mpif77 -o executable source

To compile your C++ code use:
% mpic++ source
or
% mpic++ -o executable source

 


If you have any questions regarding this topic e-mail to support@stat.ucla.edu

Date Created: 2003-01-30 17:06:00 Date Last Modified: 2003-11-14 12:12:29


UCLA Department of Statistics
Last updated: 13-Jul-2009
Access count is: 41006, since 02-Oct-2003
Maintained by: Web Staff [webstaff@stat.ucla.edu]