24小时热门版块排行榜    

查看: 1938  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 刘志凌 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 281求调剂(0805) +13 烟汐忆海 2026-03-16 24/1200 2026-03-20 14:59 by 27道科特
[考研] 298-一志愿中国农业大学-求调剂 +9 手机用户 2026-03-17 9/450 2026-03-20 14:24 by 无懈可击111
[基金申请] 学校已经提交到NSFC,还能修改吗? 40+3 babangida 2026-03-19 7/350 2026-03-20 14:13 by hejicker
[考博] 招收博士1-2人 +3 QGZDSYS 2026-03-18 3/150 2026-03-20 11:58 by 呱呱呱呱叫
[考研] 材料学硕318求调剂 +5 February_Feb 2026-03-19 5/250 2026-03-19 23:51 by 23Postgrad
[考研] 294求调剂材料与化工专硕 +14 陌の森林 2026-03-18 14/700 2026-03-19 22:38 by 学员8dgXkO
[考研] 材料与化工求调剂 +7 为学666 2026-03-16 7/350 2026-03-19 14:48 by 尽舜尧1
[考研] 346求调剂[0856] +3 WayneLim327 2026-03-16 6/300 2026-03-19 11:21 by WayneLim327
[考研] 一志愿天大材料与化工(085600)总分338 +5 蔡大美女 2026-03-13 5/250 2026-03-19 10:44 by 是小刘呀~
[考研] 295求调剂 +3 一志愿京区211 2026-03-18 5/250 2026-03-18 17:03 by zhaoqian0518
[考研] 0703化学336分求调剂 +6 zbzihdhd 2026-03-15 7/350 2026-03-18 09:53 by zhukairuo
[考研] 290求调剂 +3 p asserby. 2026-03-15 4/200 2026-03-17 16:35 by wangkm
[考研] 一志愿苏州大学材料工程(085601)专硕有科研经历三项国奖两个实用型专利一项省级立项 +6 大火山小火山 2026-03-16 8/400 2026-03-17 15:05 by 无懈可击111
[考研] 材料与化工专硕调剂 +5 heming3743 2026-03-16 5/250 2026-03-17 14:03 by 勇敢太监王公公
[考研] 302求调剂 +4 小贾同学123 2026-03-15 8/400 2026-03-17 10:33 by 小贾同学123
[考研] 274求调剂 +5 时间点 2026-03-13 5/250 2026-03-17 07:34 by 热情沙漠
[考研] [导师推荐]西南科技大学国防/材料导师推荐 +3 尖角小荷 2026-03-16 6/300 2026-03-16 23:21 by 尖角小荷
[考研] 药学383 求调剂 +3 药学chy 2026-03-15 4/200 2026-03-16 20:51 by 元子^0^
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
[考研] 本科南京大学一志愿川大药学327 +3 麦田耕者 2026-03-14 3/150 2026-03-14 20:04 by 外星文明
信息提示
请填处理意见