Multiple Node¶
In some cases, you may want to request multiple nodes. To utilize multiple nodes, you need a program or code that is specifically written to use multiple nodes, such as an MPI program.
Simply requesting more nodes will not make your work go faster. Your code must support this ability.
This example shows a request for multiple compute nodes. The job submission file contains a single command to show the names of the compute nodes allocated.
Example Job Submission File¶
Create a file named myjobsubmissionfile.sub:
On Gilbreth, specifying the number of GPUs requested per node is required.
Submit the Job¶
Submit the job with sbatch:
Example Output¶
The allocated compute nodes may be shown as:
The above example allocates a total of 32 CPU cores across 2 nodes.
If your multi-node job requests fewer than each node's full 16 cores per node, Slurm does not guarantee how this total is distributed between the assigned nodes by default. The cores may not necessarily be split evenly.
If you need specific arrangements of tasks and cores, use options such as:
and/or:
See the Slurm documentation or man sbatch for more options.