| 234 | With this the same number of processes will be launched on all allocated nodes. With the following example the number of processes per node can be different for each partition. one node of the sdv partition and one of the knl partition is allocated here. The -m plane=X option sets the number of processes on the first part of nodes (in this case 4 and then 1 process is left for the knl node, because -n is set to 5): |
| 235 | |
| 236 | {{{ |
| 237 | -bash-4.1$ srun --partition=extoll -N2 -n 5 -C '[sdv*1&knl*1]' -m plane=4 hostname |
| 238 | deeper-sdv16 |
| 239 | deeper-sdv16 |
| 240 | deeper-sdv16 |
| 241 | deeper-sdv16 |
| 242 | knl01 |
| 243 | }}} |
| 244 | |
| 245 | To change the node where to start your job (e.g. start on one partition and then spawn the rest of the processes later within your code) please use the -r option for srun. |
| 246 | |
| 247 | {{{ |
| 248 | -bash-4.1$ salloc --partition=extoll -N2 -n 5 -C '[sdv*1&knl*1]' -m plane=4 |
| 249 | salloc: Granted job allocation 5581 |
| 250 | -bash-4.1$ srun -n 1 -r 1 hostname |
| 251 | knl02 |
| 252 | }}} |