24СʱÈÈÃŰæ¿éÅÅÐаñ    

²é¿´: 2145  |  »Ø¸´: 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µÄ»ØÌû

ÁõÖ¾Áè

ľ³æ (СÓÐÃûÆø)

ÒýÓûØÌû:
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µÄ»ØÌû
²é¿´È«²¿ 4 ¸ö»Ø´ð

ÁõÖ¾Áè

ľ³æ (СÓÐÃûÆø)

×÷ÕßµÄָʾµÄÄǼ¸¸öÑ¡ÏîÎÒ¶¼ÊÔ¹ýÁË,½á¹û»¹ÊÇÒ»´ÎÔËÐÐÒ»¸öÈÎÎñ
ºÃÈËÒ»Éúƽ°²
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µÄ»ØÌû
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[»ù½ðÉêÇë] ͶƱ:  ÓжàÉÙÈËÊǽñÌì²éϵͳ֪µÀ½á¹ûµÄ£¿ +12 °®¿´ÊéµÄ¿ÉÀÖ 2026-08-26 14/700 2026-08-26 15:48 by coolysnow
[»ù½ðÉêÇë] ÄÜ·ñÍ˳ö²ÎÓëµÄÃæÉÏÏîÄ¿½â³ýÏÞÏî +23 koalala 2026-08-24 26/1300 2026-08-26 14:29 by ±¦±´³æ×Ó
[»ù½ðÉêÇë] ³öÀ´ÁË +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by ±¦±´³æ×Ó
[»ù½ðÉêÇë] Ö»ÓÐÿÄêÕâÖÖʱºòÀ´¹ä¹äСľ³æ +26 yaoyewhu2008 2026-08-20 28/1400 2026-08-26 13:49 by zzuzxg
[»ù½ðÉêÇë] ϵͳ²é²»µ½ +9 ¶­°Ëǧ 2026-08-26 9/450 2026-08-26 12:30 by yanmofang
[»ù½ðÉêÇë] ¿ÆÑй¶ùÌ«ÄÑÁË +21 ÎÒ4´ó°×²Ë 2026-08-20 22/1100 2026-08-26 11:29 by nlgza
[»ù½ðÉêÇë] Ôõô²é°¡ +4 huang1991js 2026-08-26 4/200 2026-08-26 11:26 by panjy.cn
[»ù½ðÉêÇë] ¹ú¼ÊºÏ×÷¿É²éÁË£¬ÖÐÁËÃæÉÏ +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[»ù½ðÉêÇë] ϵͳ½ø²»È¥ +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[»ù½ðÉêÇë] ¹úºÏ¿É²éÁË +3 paperzjh 2026-08-26 3/150 2026-08-26 10:41 by LemmonTr
[Ö°³¡ÈËÉú] ѧÉúײ¼û¸¨µ¼Ô±ËÍÍâÂô£¬µÚ¶þÌìÈ«°à¶¼³ÁĬÁË +3 ¾¨ÓãÈÚ½ð_Õã½­_É 2026-08-22 3/150 2026-08-26 09:01 by zzuzxg
[»ù½ðÉêÇë] Å£À´£¡Ã×À´£¡ÃæÀ´£¡ +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[»ù½ðÉêÇë] Ã÷ÌìÓ¦¸Ã¿É²éÁË£¡£¿ +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[»ù½ðÉêÇë] ½ñÈÕ²»·Å°ñ£¿Íø´«¹ú×ÔȻԤ¼Æ 8 Ô 27 Èտɲé½á¹û +17 ҽѧÀÏÄк¢ 2026-08-20 22/1100 2026-08-25 15:36 by ҽѧÀÏÄк¢
[»ù½ðÉêÇë] Èç¹û´Ë¿ÌÄãÕýÔÚΪ¹ú»ù¸Ðµ½½¹ÂÇ£¬²»·ÁÀ´ÌýÌýÕâÊס¶»ù½ðÖ®Íâ¡· +8 scalable 2026-08-24 8/400 2026-08-25 12:52 by jnhyjjm
[½Ìʦ֮¼Ò] µ¼Ê¦Í²ۣºÎÒÔõô̯ÉÏÁËÕâô¸ö¼«Æ·Ñо¿Éú£¡ +3 ËÕ¶«ÆÂ¶þÊÀ 2026-08-23 3/150 2026-08-25 10:35 by shisan1313
[»ù½ðÉêÇë] ÎÒÃæÉÏÍêµ°ÁË +13 ÇÒÌý»¢Ð¥ 2026-08-20 14/700 2026-08-25 09:10 by mrkang
[½Ìʦ֮¼Ò] Ìø²ÛºóÔÚÑÐÏîÄ¿Ôõô°ì£¿ +5 ¼òµ¥»¯xn 2026-08-22 10/500 2026-08-23 12:38 by ¼òµ¥»¯xn
[»ù½ðÉêÇë] ʱ¼ä´Á½ñÌ죬20ºÅ±äÁË +5 archvillain 2026-08-20 5/250 2026-08-22 06:12 by hui_daxiao
[»ù½ðÉêÇë] ¿´À´½ñÌì²»»á·Å°ñÁË£¿ +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û