Grid Engine Job Script Example MPICH2 Ethernet

Grid Engine Job Script Example MPICH2 Ethernet

#!/bin/bash
#
#$ -S /bin/bash
 
export MYAPP=./test_mpich2
export MYAPP_FLAGS=''
 
#$ -N TEST_MPICH2
#$ -pe mpich2_smpd 4
 
export MPICH_PROCESS_GROUP=no
 
. /etc/profile.d/modules.sh
# Load one of these
module add mpich2/smpd/ge/gcc 
# module add mpich2/smpd/ge/psc
# module add mpich2/smpd/ge/pgi
# module add mpich2/smpd/ge/intel
 
#$ -cwd
# $ -v MPI_HOME
module li
PORT=$((JOB_ID % 5000 + 20000))
 
CMD="$MPI_HOME/bin/mpiexec -n $NSLOTS -machinefile $TMPDIR/machines -port $PORT $MYAPP $MYAPP_FLAGS" 
echo $CMD
 
$CMD

Copyright 2002-2014 ClusterVision BV