adding source and scripts for ompi testing scripts
provided scripts: * ompi_connectivity.sh * ompi_hello.sh * ompi_ring.sh
This commit is contained in:
23
local/examples/jobs/ompi_connectivity.sh
Executable file
23
local/examples/jobs/ompi_connectivity.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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_connectivity
|
||||
echo Starting OpenMPI job.
|
||||
mpirun -v /data/gridengine/local/examples/jobsbin/ompi_connectivity_`/usr/bin/lsb_release -cs`
|
||||
fi
|
||||
# print date and time again
|
||||
date
|
||||
23
local/examples/jobs/ompi_hello.sh
Executable file
23
local/examples/jobs/ompi_hello.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
23
local/examples/jobs/ompi_ring.sh
Executable file
23
local/examples/jobs/ompi_ring.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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_ring
|
||||
echo Starting OpenMPI job.
|
||||
mpirun -v /data/gridengine/local/examples/jobsbin/ompi_ring_`/usr/bin/lsb_release -cs`
|
||||
fi
|
||||
# print date and time again
|
||||
date
|
||||
Reference in New Issue
Block a user