Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revisionBoth sides next revision | ||
doku:machine_file [2014/08/06 10:17] – ir | doku:machine_file [2014/08/12 09:57] – removed ir | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Starting fewer MPI processes per node than slots available ====== | ||
- | ===== Modifying the machine file ===== | ||
- | |||
- | ==== Manually modifying the machine file ==== | ||
- | |||
- | In cases when not all CPUs of one node are required, the machines file can be modified to guarantee the right behaviour of mpirun. The $TMPDIR/ | ||
- | |||
- | < | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | </ | ||
- | |||
- | |||
- | For running a job on less than eight cores the $TMPDIR/ | ||
- | |||
- | < | ||
- | #$ -N test | ||
- | #$ -pe mpich 16 | ||
- | |||
- | NSLOTS_PER_NODE_AVAILABLE=8 | ||
- | NSLOTS_PER_NODE_USED=4 | ||
- | NSLOTS_REDUCED=`echo " | ||
- | |||
- | echo " | ||
- | for i in `seq 1 $NSLOTS_PER_NODE_USED` | ||
- | do | ||
- | uniq $TMPDIR/ | ||
- | done | ||
- | sort $TMPDIR/ | ||
- | cat $TMPDIR/ | ||
- | |||
- | |||
- | mpirun -machinefile $TMPDIR/ | ||
- | |||
- | </ | ||
- | |||
- | The reduced form would look like: | ||
- | |||
- | < | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r10n01 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | r12n10 | ||
- | </ |