28 lines
667 B
Bash
Executable File
28 lines
667 B
Bash
Executable File
#!/bin/sh
|
|
#BHEADER***********************************************************************
|
|
# (c) 1998 The Regents of the University of California
|
|
#
|
|
# See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
|
|
# notice, contact person, and disclaimer.
|
|
#
|
|
# $Revision$
|
|
#EHEADER***********************************************************************
|
|
|
|
MACHINES_FILE="mpirun.casc.machines"
|
|
REMOVE_MACHINES_FILE="no"
|
|
|
|
if [ ! -f $MACHINES_FILE ]
|
|
then
|
|
hostname > $MACHINES_FILE
|
|
REMOVE_MACHINES_FILE="yes"
|
|
fi
|
|
|
|
echo "(mpirun -machinefile $MACHINES_FILE $*)"
|
|
mpirun -machinefile $MACHINES_FILE $*
|
|
|
|
if [ $REMOVE_MACHINES_FILE = "yes" ]
|
|
then
|
|
rm -f $MACHINES_FILE
|
|
fi
|
|
|