mpireconfig, a way to create Makefiles
Up: The mpich Programming Environment Next: nupshot, a Way to View Logfiles Previous: The mpicc and mpif77 Commands
Much of MPICH's portability is handled throught the careful construction of
system-dependant Makefiles by the configure program.
This is fine for installing MPICH, but what can you do when you are building
a new application?
For simple applications, the mpicc and mpif77 commands may
be the simplest way to build a new application. For more complex codes,
we recommend taking a sample Makefile.in file, for
example, in mpich/examples/test/pt2pt. Modify those parts that are
are relavent, such as the EXECS and specific program targets.
To create a Makefile, just execute
mpireconfig Makefile(mpireconfig is in the same directory as mpirun). This generates a new Makefile from Makefile.in, with the correct parameters for the MPICH that was installed.
Up: The mpich Programming Environment Next: nupshot, a Way to View Logfiles Previous: The mpicc and mpif77 Commands