| Text-only | Table of Contents (frame/ no frame) |
| (10) How to Compile MPI Programs |
|
andes:~> mpicc -o hello_world_c hello_world.c
andes:~>
andes:~> mpicc -compile_info
gcc -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 \
-DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 -c -I/usr/local/mpich-1.2.7p1/include
andes:~> mpif90 -o hello_world_f hello_world.f
andes:~>
andes:~> mpif90 -compile_info
ln -s /usr/local/mpich-1.2.7p1/include/mpif.h mpif.h
ifort -c -I/usr/local/mpich-1.2.7p1/include/f90choice
rm -f mpif.h
| compiling_mpi_ex.src last modified Feb 14, 2011 | Introduction | Table of Contents (frame/no frame) |
Printable (single file) |
© Dartmouth College |