Kasper D. Fischer
f038f8ce5c
provided scripts: * ompi_connectivity.sh * ompi_hello.sh * ompi_ring.sh
24 lines
451 B
Bash
Executable File
24 lines
451 B
Bash
Executable File
#!/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
|