main
::COMPILING MPICH APPLICATIONS:
C/C++ Applications:
For a graphical help example go here.
Here are the settings necessary to compile an mpi application written in C/C++ with MS
Visual C++.
Create a new makefile or project and make the following compiler settings:
include path:
switches:
- Debug - /MTd
- Release - /MT
libraries:
- Debug - ws2_32.lib mpichd.lib
- Release - ws2_32.lib mpich.lib
lib path:
Add your source files to the project and then build.
FORTRAN applications.
Include mpif.h
Compiler switches for Visual Fortran 6+:
- /iface:cref (External functions in the
mpich dlls use the calling convention C, by Reference)
- /iface:nomixed_str_len_arg (String length
is placed after all the arguments)
Link to the same libraries listed above.
Note:
- If you are not using Visual
Fortran then you will have to recompile mpich from the source distribution because I don't distribute the DVF
libraries. You will have to change farg.f to use the
corresponding "getarg" and "nargs" calls provided by your compiler and
set the USE lines to the appropriate modules. Look in farg.f and you'll see what I mean.
- For VI applications, you need to tell the mpi application which processes can communicate by VI through an
environment variable at runtime. VI instructions.
main
Re-Building MPICH.NT