Up: Programming Tips
Next: Debugging
Previous: Compiling and linking with Fortran
1. Create a makefile.
2. Add -I.../MPICH/SDK.gcc/include
3. Add -L.../MPICH/SDK.gcc/lib
4. Add -lmpich
5. Add the rules for your source files.
6. make
7. Copy the executable and use mpirun to run the application.
Up: Programming Tips
Next: Debugging
Previous: Compiling and linking with Fortran