24小时热门版块排行榜    

查看: 1866  |  回复: 3
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

刘志凌

木虫 (小有名气)

[求助] mpirun并行运行问题

我在集群上运行一个软件,本意要求它一次同时运行两个任务,但是每次它都只是运行一个任务,软件的作者解释是如下,不知有没有大侠能否指点一下迷津.先行谢谢了.
It appears that both mpi processes launched, but for some reason they launched independently of each other.  This means that neither process was aware of the other process, so both processes were doing the same things.  Both processes opened Test.inp and then tried to create this directory:

/home/Test/Gaussian/bestSavedStructures

One process succeded, and the other failed.  The one that failed printed "Couldn't create log files directory." in the .e file and immediately stopped.  The other kept going and made it to iteration 10, which was the predetermined stopping point.  There didn't seem to be any problems with the disk which is very good.  If you can figure out how to get the processes to see each other, you'll have a working program.

Upon launch, each process prints it's rank (or index) and the total number of processes.  This is what was printed during this run:
This is MPI process with rank 0.  Total MPI processes: 1
This is MPI process with rank 0.  Total MPI processes: 1

This is what it should have printed:
This is MPI process with rank 0.  Total MPI processes: 2
This is MPI process with rank 1.  Total MPI processes: 2

Please replace '-np 2' in pso.pbs with another option.  You might try '-hostfile nodes.txt' or '-cpus-per-rank 1'.  Or look at other options listed at http://www.open-mpi.org/doc/v1.4/man1/mpirun.1.php .  Hope that helps!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

好人一生平安
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

virtualzx

木虫 (著名写手)

引用回帖:
2楼: Originally posted by 刘志凌 at 2012-10-29 07:32:28
作者的指示的那几个选项我都试过了,结果还是一次运行一个任务

请给出你的命令行
3楼2012-10-30 03:53:15
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 刘志凌 的主题更新
信息提示
请填处理意见