24 lines
451 B
Bash
24 lines
451 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# This is a simple example of a SGE batch script
|
||
|
#$ -pe mpi-rr 4-20
|
||
|
#$ -l low
|
||
|
|
||
|
# request Bourne shell as shell for job
|
||
|
#$ -S /bin/bash
|
||
|
|
||
|
#
|
||
|
# print hostname
|
||
|
hostname
|
||
|
# print date and time
|
||
|
date
|
||
|
if [ "X$PE_HOSTFILE" != "X" ]; then
|
||
|
# print pe_hostfile
|
||
|
cat $PE_HOSTFILE
|
||
|
# Run ompi_hello
|
||
|
echo Starting OpenMPI job.
|
||
|
mpirun -v /data/gridengine/local/examples/jobsbin/ompi_hello_$(/usr/bin/lsb_release -cs)
|
||
|
fi
|
||
|
# print date and time again
|
||
|
date
|