strange007的个人博客分享 http://blog.sciencenet.cn/u/strange007

博文

VS2005试验——MPICH2并行release编译

已有 10768 次阅读 2009-5-26 15:41 |个人分类:未分类|系统分类:科研笔记|关键词:学者| 并行, 并行, MPICH2, MPICH2

1.Configuration选择Release
2. Con?guration Properties-->C/C++ -->General
 把 C:Program FilesMPICH2include 加入到 “Additional Include Directories” 中.
3. Con?guration Properties-->Linker-->General
 把 C:Program FilesMPICH2lib 加入到 “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_projectsopenGEMS_08_12810_MultiReleaseRunrelease,源代码和编译选项完全相同
 1.但是在实验室191/190上面进行project设置和release编译,得到的openGEMS_08_12810_MultiReleaseRun.exe既不能单机并行运行——
"C:Program FilesMPICH2binmpiexec.exe" -n 3 "openGEMS_08_1288_MultiReleaseRun.exe" "dipole_metal_5_5_5.pcf"
 也不能多机并行运行——"C:Program FilesMPICH2binmpiexec.exe" -hosts 2 RFLAB190 2  XCG 1 "openGEMS_solver_08_1.exe" "dipole_metal_5_5_5.pcf"
 2.在宿舍笔记本上完全相同编译的release,可以单机并行,也可以多机并行运行

 

B---E:VS2005_projectsopenGEMS_08_12812_IO_s_MTrelease,编译选项完全相同,而且源代码对fscanf_s和fopen_s进行了改造,但是结果连“Project pre-proceing”都没有到,就出现parallel错误了
 而且,这种源代码对fscanf_s和fopen_s进行了改造之后的错误,在实验室和宿舍都会出现,都不能并行运行。

E:>"C:Program FilesMPICH2binmpiexec.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[0]: E:openGEMS_08_12812_IO_s_MT.exe
argv[1]: 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[: error message]
0: RFLAB190: -1073741811: process 0 exited without calling finalize
1: RFLAB190: -1073741811: process 1 exited without calling finalize
2: RFLAB190: 123



https://m.sciencenet.cn/blog-112539-234269.html


下一篇:bbs.yingjiesheng.com,超全的求职笔经面经论坛

0

发表评论 评论 (1 个评论)

数据加载中...

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

GMT+8, 2024-5-19 13:09

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部