2009年6月7日星期日

在Visual Studio下以并行方式运行mpi程序

在项目属性对话框,
调试中,
命令项改为mpiexec.exe
命令参数改为-n [进程数] $(TargetPath)
mpich version: mpich2 32位 for windows
--
snigoal,HUST,Wuhan,China
 

2009年6月6日星期六

MPICH2/include/mpicxx.h(26): fatal error C1189: #error : "SEEK_SET is #defined but must not be for the C++ binding of MPI"

The error-

c:/Program Files/MPICH2/include/mpicxx.h(26): fatal error C1189: #error : "SEEK_SET is #defined but must not be for the C++ binding of MPI"

compiling your MPI application occurs because of MPI - 2 bug. This is because of SET_SEE which is defined in both mpi.h and stdio.h. The work around is to add

-DMPICH_IGNORE_CXX_SEEK

to a command line. This can be done by following the path : project properties - C/C++ - Command Line;

--
snigoal,HUST,Wuhan,China

all MPI v2.0 functions documents

http://mpi.deino.net/mpi_functions/index.htm

--
snigoal,HUST,Wuhan,China