Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions docs/launching-apps/gridengine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ like this batch script can be used:
#$ -pe ompi 16
#$ -j y
#$ -l h_rt=00:20:00
mpirun -n 16 -mca orte_forward_job_control 1 mpi-hello-world

.. error:: Ralph: Does ``orte_forward_job_control`` still exist?
mpirun -n 16 --prtemca ess_base_forward_signals mpi-hello-world

However, one has to make one of two changes to this script for things
to work properly. By default, a SIGUSR1 signal will kill a shell
Expand All @@ -196,7 +194,7 @@ to handle it:
#$ -pe ompi 16
#$ -j y
#$ -l h_rt=00:20:00
exec mpirun -n 16 -mca orte_forward_job_control 1 mpi-hello-world
exec mpirun -n 16 --prtemca ess_base_forward_signals mpi-hello-world

Alternatively, one can catch the signals in the script instead of doing
an exec on the mpirun:
Expand Down Expand Up @@ -225,7 +223,7 @@ an exec on the mpirun:
trap sigusr1handler SIGUSR1
trap sigusr2handler SIGUSR2

mpirun -n 16 -mca orte_forward_job_control 1 mpi-hello-world
mpirun -n 16 --prtemca ess_base_forward_signals mpi-hello-world

Grid Engine job suspend / resume support
----------------------------------------
Expand All @@ -238,14 +236,12 @@ the ``mpi-hello-world``.

By default, this feature is not enabled. This means that both the
SIGTSTP and SIGCONT signals will simply be consumed by the ``mpirun``
process. To have them forwarded, you have to run the job with ``--mca
orte_forward_job_control 1``. Here is an example on Solaris:

.. error:: TODO Ralph: does ``orte_forward_job_control`` still exist?
process. To have them forwarded, you have to run the job with ``--prtemca
ess_base_forward_signals``. Here is an example using Solaris:

.. code-block:: sh

shell$ mpirun -mca orte_forward_job_control 1 -n 2 mpi-hello-world
shell$ mpirun --prtemca ess_base_forward_signals -n 2 mpi-hello-world

In another window, we suspend and continue the job:

Expand Down