You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -71,26 +71,29 @@ The master will start the specified number of slaves, each of which will start t
71
71
If SSH is enabled, the master logs on to the remote cluster and starts the slaves there.
72
72
73
73
## 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.
75
75
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.
77
77
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:
79
79
80
80
OMPI_COMM_WORLD_RANK
81
-
PMI_RANK
81
+
OMPI_COMM_WORLD_SIZE
82
82
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
84
85
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:
86
87
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
88
90
89
-
Second is
91
+
To directly pass the rank or size to the slave use:
90
92
91
93
-r <rank>
94
+
-s <size>
92
95
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 rankmust be set for every slave individually, so the launch command should probably start a shell script/etc.
94
97
95
98
# Example Target
96
99
In this project a small example target and configuration file for it is included. It can be built with:
<p>If SSH is enabled, the master logs on to the remote cluster and starts the slaves there.</p>
133
133
<h2><aclass="anchor" id="autotoc_md7"></a>
134
134
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><preclass="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><preclass="fragment">OMPI_COMM_WORLD_RANK
138
+
OMPI_COMM_WORLD_SIZE
139
+
138
140
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><preclass="fragment">-e <name>
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><preclass="fragment">-r <rank>
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><preclass="fragment">-k <name> # rank
143
+
-z <name> # size
144
+
</pre><p> To directly pass the rank or size to the slave use: </p><preclass="fragment">-r <rank>
145
+
-s <size>
146
+
</pre><p> The rank must be set for every slave individually, so the launch command should probably start a shell script/etc.</p>
143
147
<h1><aclass="anchor" id="autotoc_md8"></a>
144
148
Example Target</h1>
145
149
<p>In this project a small example target and configuration file for it is included. It can be built with: </p><preclass="fragment">cd example
0 commit comments