File: mpirun.execer.in

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (50 lines) | stat: -rwxr-xr-x 1,204 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#! /bin/sh
if [ "$MPIR_HOME" = "" ] ; then 
    MPIR_HOME=#MPIR_HOME#
fi
if [ "$MPIR_HOME" = "#""MPIR_HOME""#" ] ; then
    MPIR_HOME=`pwd`/..
fi
if [ "#MPIRUN_BIN#" = "#""MPIRUN_BIN""#" ] ; then 
    MPIRUN_HOME=$MPIR_HOME/bin
else
    MPIRUN_HOME=$MPIR_HOME/#MPIRUN_BIN#
fi
if [ "$argsset" = "" ] ; then
   . $MPIRUN_HOME/mpirun.args
   argsset=1
fi
#
. $MPIRUN_HOME/mpirun.pg
#
if [ $nolocal = 0 ] ; then
    cmdline="$cmdline -islocal -host=${MPI_HOST} -pgm=${progname} -numprocs=1 $cmdLineArgsExecer"
fi
for machineName in $machinelist ; do
    cmdline="$cmdline -host=${machineName} -pgm=${progname} -numprocs=1 $cmdLineArgsExecer"
done
#
PWD_LOCAL=$HOME
#
# Tell mpirun that we are using execer
#
MPIRUN_DEVICE=$default_device
export MPIRUN_DEVICE
#
if [ $just_testing = 1 ] ; then
  echo $EXECER "-jobid=$jobid" $cmdline
  if [ "$mvback" != "" ] ; then
	(cd $PWD_LOCAL ; for file in $mvback ; do \
	if [ -s $file ] ; then echo cp $file $PWD_TRIAL ; \
	echo /bin/rm $file ; \
	fi ; done )
  fi
else
  $EXECER "-jobid=$jobid" $cmdline
  if [ "$mvback" != "" ] ; then
	(cd $PWD_LOCAL ; for file in $mvback ; do \
	if [ -s $file ] ; then cp $file $PWD_TRIAL ; /bin/rm $file ; \
	fi ; done )
  fi
fi