24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1952  |  回复: 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的回帖

刘志凌

木虫 (小有名气)

作者的指示的那几个选项我都试过了,结果还是一次运行一个任务
好人一生平安
2楼2012-10-29 20:32:28
已阅   关注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的回帖

刘志凌

木虫 (小有名气)

引用回帖:
3楼: Originally posted by virtualzx at 2012-10-30 03:53:15
请给出你的命令行...

#!/bin/bash
#PBS -N TestJob
#PBS -l nodes=2:ppn=8,walltime=0:30:00
#PBS -l mem=4GB
export LD_LIBRARY_PATH=/home/fan_group/openmpi/lib:$LD_LIBRARY_PATH
echo PBS_O_WORKDIR=$PBS_O_WORKDIR
echo PBS_ENVIRONMENT=$PBS_ENVIRONMENT
echo PBS_NODEFILE=$PBS_NODEFILE
echo cat $PBS_NODEFILE
cat $PBS_NODEFILE
echo $PBS_NODEFILE
echo HOSTNAME=`/bin/hostname`

# Create the nodes.txt file
# The next line writes one node per line and allows duplicate nodes
# Use this if you want one Gaussian job per processor.
# cp $PBS_NODEFILE /home/fan_group/lzhl/pso/Test/Gaussian/nodes.txt


# The next line writes one node per line and does NOT allow duplicate nodes.
# Use this if you want one Gaussian job per node with each job runing in parallel on multiple processors.
cat $PBS_NODEFILE | uniq > /home/fan_group/lzhl/pso/Test/Gaussian/nodes.txt

cd /home/fan_group/pso1.5.2
/opt/openmpi/bin/mpirun -np 2 ./pso -walltime 0:30:00 /home/fan_group/lzhl/pso/Test/Gaussian/Test.inp
好人一生平安
4楼2012-11-05 10:30:44
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 刘志凌 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿矿大,材料工程专硕314分,0856可调都可以 +12 无懈可击的巨人 2026-04-09 12/600 2026-04-10 00:31 by 孙小小12457
[考研] 22408调剂求助 +3 毂12 2026-04-09 5/250 2026-04-09 23:21 by zhouyuwinner
[考研] 求调剂 +5 archer.. 2026-04-09 7/350 2026-04-09 22:18 by lbsjt
[考研] 085601初试330分找调剂 +8 流心奶黄包l 2026-04-09 8/400 2026-04-09 19:19 by 5268321
[考研] 一志愿鲁东大学071000生物学学硕初试分数276求调剂 +19 慕绝cc 2026-04-09 23/1150 2026-04-09 17:14 by 段伟艳
[考研] 085400电子信息类(川大控制工程)求调剂可跨专业 求老师联系 +3 626776879 2026-04-08 3/150 2026-04-09 16:05 by 猪会飞
[考研] 285求调剂 +9 AZMK 2026-04-07 10/500 2026-04-09 10:29 by 小物理化学
[考研] 求调剂 +15 熊二想上岸 2026-04-04 15/750 2026-04-08 22:52 by 猪会飞
[考研] 270求调剂 +3 031127 2026-04-06 4/200 2026-04-08 21:00 by 逆水乘风
[考研] 计算机11408 287 求调剂 +3 LiLe5 2026-04-07 3/150 2026-04-07 23:15 by shanqishi
[考研] 277求调剂 数一104分 +9 瓶子PZ 2026-04-05 14/700 2026-04-07 17:52 by 蓝云思雨
[考研] 286求调剂 +20 Faune 2026-04-06 20/1000 2026-04-07 11:33 by 诗与自由
[考研] 求调剂 +4 wos666 2026-04-03 5/250 2026-04-06 15:22 by wos666
[考研] 0703求调剂383分 +9 W55j 2026-04-03 9/450 2026-04-06 06:50 by houyaoxu
[考研] 348求调剂 +3 车厘子zzz 2026-04-05 3/150 2026-04-05 20:30 by 啵啵啵0119
[考研] 一志愿北京化工大学,初试成绩350求调剂 +9 沿岸?贝壳 2026-04-04 14/700 2026-04-05 01:09 by 沿岸?贝壳
[考研] 085400电子信息319求调剂(接受跨专业调剂) +5 星星不眨眼喽 2026-04-03 6/300 2026-04-04 21:50 by hemengdong
[考研] 26调剂 086003 +6 失活的细胞 2026-04-04 6/300 2026-04-04 09:50 by zhangdingwa
[考研] 调剂0855-288 +5 x熊二a 2026-04-03 5/250 2026-04-04 00:19 by 猪会飞
[考研] 283求调剂 +3 jiouuu 2026-04-03 4/200 2026-04-03 13:28 by jiouuu
信息提示
请填处理意见