科学网

 找回密码
  注册

tag 标签: MPICH2

相关帖子

版块 作者 回复/查看 最后发表

没有相关内容

相关日志

VS2005试验——MPICH2并行release编译
热度 1 strange007 2009-5-26 15:41
1.Configuration选择Release 2. Con?guration Properties--C/C++ --General 把 C:\Program Files\MPICH2\include 加入到 Additional Include Directories 中. 3. Con?guration Properties--Linker--General 把 C:\Program Files\MPICH2\lib 加入到 Aditional Library Directories 中. 4. Con?guration Properties--Linker--Input--Additional Dependencies 加入 cxx.lib mpi.lib。注意,这里两个都要加入,而且中间有空格。 (对于简单的,没有C++特性的程序,加入mpi.lib即可,否则会出错。cxx.lib,mpi.lib中间的逗号是有问题的) 对于fortran 加入 fmpich2.lib 到 Additional Dependencies 中. 注意:这里好像加入(cxx.lib mpi.lib)或者(mpi.lib)都可以正确编译出并行release,不过,推荐采用(cxx.lib mpi.lib)。 5. Con?guration Properties--C/C++ --Code Generation -- Runtime Library 选择 Multi-threaded DLL(/MD) 6.在进行编译之前,选择菜单中的Release,Win32 7.可以考虑把原来的.h和.cpp文档用ultraEdit保存为UHF16格式 问题:为何不能在实验室台式机上面编译通过的opengems_release.exe并行运行,不能把CFDTD::readIn()进行下去?(Project pre-processing停住) 现象: A---E:\VS2005_projects\openGEMS_08_12810_MultiReleaseRun\release,源代码和编译选项完全相同 1.但是在实验室191/190上面进行project设置和release编译,得到的openGEMS_08_12810_MultiReleaseRun.exe既不能单机并行运行 C:\Program Files\MPICH2\bin\mpiexec.exe -n 3 openGEMS_08_1288_MultiReleaseRun.exe dipole_metal_5_5_5.pcf 也不能多机并行运行C:\Program Files\MPICH2\bin\mpiexec.exe -hosts 2 RFLAB190 2 XCG 1 openGEMS_solver_08_1.exe dipole_metal_5_5_5.pcf 2.在宿舍笔记本上完全相同编译的release,可以单机并行,也可以多机并行运行 B---E:\VS2005_projects\openGEMS_08_12812_IO_s_MT\release,编译选项完全相同,而且源代码对fscanf_s和fopen_s进行了改造,但是结果连Project pre-proceing都没有到,就出现parallel错误了 而且,这种源代码对fscanf_s和fopen_s进行了改造之后的错误,在实验室和宿舍都会出现,都不能并行运行。 E:\C:\Program Files\MPICH2\bin\mpiexec.exe -n 3 openGEMS_08_12812_IO_s_MT.ex e dipole_metal_5_5_5.pcf Internal Error: invalid error code f8009736 (Ring ids do not match) in MPIDI_CH3 I_Progress_handle_sock_event:420 argv : E:\openGEMS_08_12812_IO_s_MT.exe argv : dipole_metal_5_5_5.pcf 当前工作 目录 字符串: (E:\) 转换后的char* 类型的 目录+文件名 字符串: (E:\\dipole_metal_5_5_5.pcf) CFDTD::setFileName 2 of 3 job aborted: rank: node: exit code 0: RFLAB190: -1073741811: process 0 exited without calling finalize 1: RFLAB190: -1073741811: process 1 exited without calling finalize 2: RFLAB190: 123
个人分类: 未分类|10784 次阅读|1 个评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-2 20:39

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部