找回密码
 注册
查看: 2858|回复: 3

fortran并行问题的求救

[复制链接]
发表于 2007-8-21 22:55:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
本人初学者,现在FORTRAN中碰到一个程序如下
……
CALL RUN1
CALL RUN2
……
END

SUBROUTINE RUN2
LOGICAL(4) RUSULT1
RESULT1=SYSTEMQQ(“1.vbs”)
END
SUBROUTINE RUN2
LOGICAL(4) RUSULT2
RESULT2=SYSTEMQQ(“2.vbs”)
END
请问如何才能实现RUN1和RUN2两个子程序能并行运行,节省时间(因为每单独运行完一个子程序都需要花几分钟时间),本人机器是多核,xp系统
另外,本人已装了vf6.5,mpich2,lib和include都已设置好,可最后连运行hello.f90都报错:LINK : fatal error LNK1104: cannot open file "cxx.LIB"
望达人帮我看看是怎么回事,小弟感激不尽
发表于 2007-8-22 23:36:33 | 显示全部楼层

fortran并行问题的求救

Please paste all your hello.f90 and your compile script or makefile and your path to the lib and header so that we can have a look.
best,
[br][br][以下内容由 macintel 在 2007年08月22日 11:39pm 时添加] [br]
and by the way, if you are running it on one computer with mutiple cores, you do not really need MPI, you just need to use thread.
On *nix, you can use pthead, similar stuff in windows also exist. But I am not sure whether there is thread support in visual fortran(MS).
 楼主| 发表于 2007-8-23 23:11:24 | 显示全部楼层

fortran并行问题的求救

谢楼上,hello.f90我已经调通了
可是发现凡程序中含有systemqq()语句时,用mpiexec都没法调用
 楼主| 发表于 2007-8-25 17:12:56 | 显示全部楼层

fortran并行问题的求救

问题解决了,mpi跟for都没有问题,是调用的子程序的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表