avoid starting mpd daemon everytime running charmrun
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Dec 2008 16:48:52 +0000 (16:48 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 1 Dec 2008 16:48:52 +0000 (16:48 +0000)
src/arch/mpi/charmrun

index 5f0e189d6ed25acbdef131558ec300c5a24ca8cd..f6abe8fc302a7e932b14c2466f53dd98e8ec0c40 100755 (executable)
@@ -47,9 +47,13 @@ then
   mpirun_cmd=`which mpirun`
   if echo $mpirun_cmd | grep 'mvapich2'  > /dev/null 2>/dev/null
   then
-    mvapich2-start-mpd
+    # if daemon not started, start it
+    if ! mpdtrace > /dev/null 2>/dev/null
+    then
+      mvapich2-start-mpd
+    fi
     mpirun -np $pes $args
-    mpdallexit
+#    mpdallexit
   else   # normal case
     test -z "$machinefile" && args=-machinefile" "$PBS_NODEFILE" "$args
     echo mpirun -np $pes $args