Skip to content

Commit 04a72ba

Browse files
author
nicolas.with@st.ovgu.de
committed
update doc
1 parent 5129e96 commit 04a72ba

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

README.md

+12-9
Original file line numberDiff line numberDiff line change
@@ -71,26 +71,29 @@ The master will start the specified number of slaves, each of which will start t
7171
If SSH is enabled, the master logs on to the remote cluster and starts the slaves there.
7272

7373
## Custom launcher command
74-
If you need to make specific changes to the start command, or need to use a completely different launcher, you can check the Custom Command option in the startup dialog. This command will invalidate all configurations except for the SSH options and the Number of Processes. For the master to know how many connections to open the Number of Processes still needs to be set in the startup dialog. Make SURE they match up with what you set in your custom command.
74+
If you need to make specific changes to the start command, or need to use a completely different launcher, you can check the "custom" launcher option in the startup dialog. This command will invalidate all configurations except for the SSH options, the Number of Processes and the Base Port. For the master to know how many connections to open the Number of Processes still needs to be set in the startup dialog. Make SURE they match up with what you set in your custom command.
7575

76-
If Parallel GDB should not start the slaves at all, check the Custom Command option and leaf the Launcher Command blank.
76+
If Parallel GDB should not start the slaves at all, check the "custom" launcher option and leave the Launcher Arguments blank.
7777

78-
The slave supports two possibilities to set its rank. Under normal conditions it will try to read the environment variables set by OpenMPI/MPICH/slurm:
78+
The slave supports two possibilities to set its rank and the size. Under normal conditions it will try to read the environment variables set by OpenMPI/PMI:
7979

8080
OMPI_COMM_WORLD_RANK
81-
PMI_RANK
81+
OMPI_COMM_WORLD_SIZE
8282

83-
If neither of those is set (NOT using OpenMPI/MPICH/slurm as launcher) there are two command line arguments which can be used to set the rank. First is
83+
PMI_RANK
84+
PMI_SIZE
8485

85-
-e <name>
86+
If the launcher you are using is not setting those environment variables, you can specify custom environment variable names for the rank and size:
8687

87-
which adds an additional environment variable name which is tried to be read before the others.
88+
-k <name> # rank
89+
-z <name> # size
8890

89-
Second is
91+
To directly pass the rank or size to the slave use:
9092

9193
-r <rank>
94+
-s <size>
9295

93-
which directly sets this processes rank. This must be set for every rank individually, so the launch command should probably start a shell script/etc.
96+
The rank must be set for every slave individually, so the launch command should probably start a shell script/etc.
9497

9598
# Example Target
9699
In this project a small example target and configuration file for it is included. It can be built with:

docs/index.html

+11-7
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,18 @@ <h1><a class="anchor" id="autotoc_md6"></a>
132132
<p>If SSH is enabled, the master logs on to the remote cluster and starts the slaves there.</p>
133133
<h2><a class="anchor" id="autotoc_md7"></a>
134134
Custom launcher command</h2>
135-
<p>If you need to make specific changes to the start command, or need to use a completely different launcher, you can check the Custom Command option in the startup dialog. This command will invalidate all configurations except for the SSH options and the Number of Processes. For the master to know how many connections to open the Number of Processes still needs to be set in the startup dialog. Make SURE they match up with what you set in your custom command.</p>
136-
<p>If Parallel GDB should not start the slaves at all, check the Custom Command option and leaf the Launcher Command blank.</p>
137-
<p>The slave supports two possibilities to set its rank. Under normal conditions it will try to read the environment variables set by OpenMPI/MPICH/slurm: </p><pre class="fragment">OMPI_COMM_WORLD_RANK
135+
<p>If you need to make specific changes to the start command, or need to use a completely different launcher, you can check the "custom" launcher option in the startup dialog. This command will invalidate all configurations except for the SSH options, the Number of Processes and the Base Port. For the master to know how many connections to open the Number of Processes still needs to be set in the startup dialog. Make SURE they match up with what you set in your custom command.</p>
136+
<p>If Parallel GDB should not start the slaves at all, check the "custom" launcher option and leave the Launcher Arguments blank.</p>
137+
<p>The slave supports two possibilities to set its rank and the size. Under normal conditions it will try to read the environment variables set by OpenMPI/PMI: </p><pre class="fragment">OMPI_COMM_WORLD_RANK
138+
OMPI_COMM_WORLD_SIZE
139+
138140
PMI_RANK
139-
</pre><p> If neither of those is set (NOT using OpenMPI/MPICH/slurm as launcher) there are two command line arguments which can be used to set the rank. First is </p><pre class="fragment">-e &lt;name&gt;
140-
</pre><p> which adds an additional environment variable name which is tried to be read before the others.</p>
141-
<p>Second is </p><pre class="fragment">-r &lt;rank&gt;
142-
</pre><p> which directly sets this processes rank. This must be set for every rank individually, so the launch command should probably start a shell script/etc.</p>
141+
PMI_SIZE
142+
</pre><p> If the launcher you are using is not setting those environment variables, you can specify custom environment variable names for the rank and size: </p><pre class="fragment">-k &lt;name&gt; # rank
143+
-z &lt;name&gt; # size
144+
</pre><p> To directly pass the rank or size to the slave use: </p><pre class="fragment">-r &lt;rank&gt;
145+
-s &lt;size&gt;
146+
</pre><p> The rank must be set for every slave individually, so the launch command should probably start a shell script/etc.</p>
143147
<h1><a class="anchor" id="autotoc_md8"></a>
144148
Example Target</h1>
145149
<p>In this project a small example target and configuration file for it is included. It can be built with: </p><pre class="fragment">cd example

docs/pgdb.png

12.9 KB
Loading

res/pgdb.png

12.9 KB
Loading

0 commit comments

Comments
 (0)