Skip to content

Commit 124f1da

Browse files
zerothijjhursey
andcommitted
doc: fixed LSF documentation
Clarified how to run LSF jobs using OMPI. Signed-off-by: Nick Papior <nickpapior@gmail.com> Co-authored-by: Josh Hursey <4259120+jjhursey@users.noreply.github.com>
1 parent 57ca47a commit 124f1da

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/launching-apps/lsf.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,23 @@ Launching
3636
When properly configured, Open MPI obtains both the list of hosts and
3737
how many processes to start on each host from LSF directly. Hence, it
3838
is unnecessary to specify the ``--hostfile``, ``--host``, or ``-n``
39-
options to ``mpirun``. Open MPI will use PBS/Torque-native mechanisms
39+
options to ``mpirun``. Open MPI will use LSF-native mechanisms
4040
to launch and kill processes (``ssh`` is not required).
4141

4242
For example:
4343

44-
.. error:: TODO Need LSF specific content here
45-
4644
.. code-block:: sh
4745
48-
# Allocate a PBS job with 4 nodes
49-
shell$ qsub -I -lnodes=4
46+
# Allocate a job using 4 nodes with 2 processors per node and run the job on the nodes allocated by LSF
47+
shell$ bsub -n 8 -R "span[ptile=2]" "mpirun mpi-hello-world"
5048
51-
# Now run an Open MPI job on all the nodes allocated by PBS/Torque
52-
shell$ mpirun mpi-hello-world
5349
5450
This will run the MPI processes on the nodes that were allocated by
5551
LSF. Or, if submitting a script:
5652

57-
.. error:: TODO Need LSF specific content here
58-
5953
.. code-block:: sh
6054
6155
shell$ cat my_script.sh
6256
#!/bin/sh
6357
mpirun mpi-hello-world
64-
shell$ qsub -l nodes=4 my_script.sh
58+
shell$ bsub -n 8 -R "span[ptile=2]" < my_script.sh

0 commit comments

Comments
 (0)