File: localhost.rst

package info (click to toggle)
prrte 3.0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,128 kB
  • sloc: ansic: 80,431; sh: 4,289; perl: 3,195; makefile: 1,829; lex: 352; python: 239
file content (23 lines) | stat: -rw-r--r-- 805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Launching only on the local node
================================

It is common to develop applications on a single workstation or
laptop, and then move to a larger parallel / HPC environment once the
application is ready.

PRRTE supports running multi-process jobs on a single machine.
In such cases, you can simply avoid listing a hostfile or remote
hosts, and simply list a number of processes to launch.  For
example:

.. code-block:: sh

   shell$ prterun -n 6 mpi-hello-world
   Hello world, I am 0 of 6 (running on my-laptop))
   Hello world, I am 1 of 6 (running on my-laptop)
   ...
   Hello world, I am 5 of 6 (running on my-laptop)

If you do not specify the ``-n`` option, ``prterun`` will default to
launching as many processes as there are processor cores (not
hyperthreads) on the machine.