The first benchmark I ran on this cluster said the network moved 19 GB/s. The cable it ran over tops out at 125 MB/s.
Welcome back to HPC From Scratch. In Episode 7 we set up Lmod and Apptainer, so the cluster can now schedule jobs, share storage, authenticate users, and serve multiple software versions. What it has never done is run a single program across more than one node at the same time.
That is what MPI is for. This is the episode where the cluster stops being six computers on a switch.
YouTube video will be uploaded later.
1. Why MPI Matters #
When a task needs more than one node, Slurm will happily assign several nodes to the job. What Slurm cannot do is make those nodes work together. Rent five cars from a rental company and they do not care how you use them, as long as the cars come back on time. Slurm is the rental company, handing five nodes to your job. Five drivers with no way to reach each other will not get the job done, however good the cars are. This is why MPI, the Message Passing Interface, is needed to actually use resources scattered across multiple nodes.
On a cluster, every node can reach shared storage over the network. But at the node level, each node uses its own local memory to process its share of the work, and interceptor-01 cannot read what is sitting in interceptor-02’s RAM. Some tasks need information from other nodes to keep going. It is like a group preparing food for a potluck: everyone wants to know what the others are bringing so nobody shows up with the same dish. MPI is the communication channel for that group. Each node works on its own piece, and talks to the others when it needs to share data.
MPI is a specification, not a program. OpenMPI and MPICH are the two implementations you are most likely to meet. This cluster runs OpenMPI, built from source and served through Lmod.
2. Prerequisites: PMIx on Both Sides #
PMIx is the protocol Slurm and MPI use to introduce ranks to each other at startup. Get this wrong and every rank starts up believing it is alone in the universe.
Check the MPI side first:
[wpaik@carrier ~]$ module load openmpi
[wpaik@carrier ~]$ ompi_info | grep -i pmix
Configure command line: '--prefix=/shared/sw/openmpi/5.0.9/' '--with-pmix=external' '--with-libevent=external' '--with-hwloc=external'That --with-pmix=external matters. OpenMPI 5.0 removed support for the older PMI and PMI-2 interfaces entirely, so on the 5.x series PMIx is not one option among several. It is the only one.
Now the Slurm side:
[wpaik@carrier ~]$ srun --mpi=list
MPI plugin types are...
none
cray_shasta
pmi2
pmix
specific pmix plugin versions available: pmix_v4If pmix is missing from that list, Slurm was built without it, and srun cannot launch OpenMPI 5 programs at all. mpirun would still work inside the allocation, but every launch in this episode goes through srun.
Note:
--with-pmix=externaltells OpenMPI to use a PMIx installed outside its own source tree instead of the copy bundled with it. That alone does not guarantee OpenMPI and Slurm load the same PMIx library. PMIx is designed to work across versions, so a mismatch usually still launches, but whensrunfails with PMIx errors, comparing the PMIx versions on both sides is the first thing to check.
3. Hello World: Proving the Ranks Landed #
The point of a hello world here is not that it prints. It is that it prints from the right places.
#include <mpi.h>
#include <iostream>
#include <vector>
int main(int argc, char** argv) {
// Initialize the MPI environment
MPI_Init(&argc, &argv);
// Get the total number of ranks
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
// Get the rank of the current process
int world_rank;
MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
// Get the name of the processor (hostname)
std::vector<char> processor_name(MPI_MAX_PROCESSOR_NAME);
int name_len;
MPI_Get_processor_name(processor_name.data(), &name_len);
// Print the hello message from each rank
std::cout << "Hello World! from rank " << world_rank
<< " out of " << world_size
<< " running on host: " << processor_name.data()
<< std::endl;
// Finalize the MPI environment
MPI_Finalize();
return 0;
}[wpaik@carrier ~]$ mpic++ -o hello_mpi hello_mpi.cppCompile on the shared filesystem so every node sees the same binary. Then:
#!/bin/bash
#SBATCH -N 2
#SBATCH --ntasks-per-node=4
#SBATCH --hint=nomultithread
#SBATCH -t 5:00
module load openmpi
srun --mpi=pmix ./hello_mpiHello World! from rank 0 out of 8 running on host: interceptor-01
Hello World! from rank 1 out of 8 running on host: interceptor-01
Hello World! from rank 4 out of 8 running on host: interceptor-02
Hello World! from rank 2 out of 8 running on host: interceptor-01
Hello World! from rank 5 out of 8 running on host: interceptor-02
Hello World! from rank 6 out of 8 running on host: interceptor-02
Hello World! from rank 3 out of 8 running on host: interceptor-01
Hello World! from rank 7 out of 8 running on host: interceptor-02Two things to notice.
Ranks 0 through 3 are on the first node, 4 through 7 on the second. That is Slurm’s default block distribution. Remember this check, because section 6 is what happens when you skip it.
The output order is scrambled. Every rank writes to stdout independently, so there is no ordering guarantee. If you need ordered output, collect it on rank 0.
If every line shows the same hostname, your ranks never crossed the network. Everything you measure after that point is a measurement of shared memory.
4. Launching MPI Under Slurm #
There are two ways to start an MPI program on a Slurm cluster, and the internet will tell you both are correct, because both are.
| Launcher | How it works | Argument for it |
|---|---|---|
mpirun |
OpenMPI’s own launcher, asks Slurm for the node list | Portable across schedulers, and what the OpenMPI project itself recommends |
srun --mpi=pmix |
Slurm launches every rank as a Slurm task | Each rank is tracked by Slurm for accounting, cgroup limits, and cleanup |
This series uses srun. The reason is not speed, it is bookkeeping. Every rank becomes a Slurm task, so sacct sees them individually, cgroup limits apply per rank, and scancel cleans all of them up. That is what makes the accounting from Episode 6 mean anything once jobs start spanning nodes, and it is what most site documentation assumes.
The trade-off is real, and section 8 is where it bites. Handing Slurm control of rank placement means Slurm’s defaults become your problem, and on nodes with SMT those defaults are wrong. In that test mpirun got the placement right on its own and srun had to be told. If you would rather not think about placement at all, mpirun is a defensible choice, and it is the one OpenMPI’s own documentation points to.
One thing confuses almost everyone once, so it is worth stating plainly: sbatch requests the resources, srun launches the ranks inside them. They are not alternatives. The srun goes inside the sbatch script.
Note on
--hint=nomultithread: These nodes present 8 logical CPUs from 4 physical cores. Without this flag Slurm may pack tasks onto hyperthread siblings of the same physical cores, which for compute-bound work is a straight loss. Section 8 shows what skipping it cost this cluster: half of HPL’s throughput.
5. Installing OSU Micro-Benchmarks (and the Two bin Directories)
#
The OSU Micro-Benchmarks are the standard way to find out what your interconnect actually does, as opposed to what the box it came in claimed.
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ module load openmpi
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ ./configure CC=mpicc CXX=mpicxx --prefix=$PWD/../build/
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ make -j4 && make installThen look in bin/ and find three files.
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ ls ../build/bin/
omb_coll omb_one_sided omb_pt2ptThree executables, and not one of them named after a benchmark. My first assumption was that the build had failed somewhere and I had not noticed.
Nothing is broken. The real benchmarks install under libexec/:
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ ls ../build/libexec/osu-micro-benchmarks/mpi/pt2pt/
omb_pt2pt osu_bw osu_bw_persistent osu_latency_mt osu_multi_lat
osu_bibw osu_bw_fan_in osu_latency osu_latency_persistent osu_partitioned_latency
osu_bibw_persistent osu_bw_fan_out osu_latency_mp osu_mbw_mrFourteen files, and a closer look shows they are almost all the same file:
[wpaik@carrier osu-micro-benchmarks-8.0rc]$ ll ../build/libexec/osu-micro-benchmarks/mpi/pt2pt/
-rwxr-xr-x. 1 wpaik wpaik 530832 Aug 12 15:49 omb_pt2pt
lrwxrwxrwx. 1 wpaik wpaik 9 Aug 12 15:49 osu_bibw -> omb_pt2pt
lrwxrwxrwx. 1 wpaik wpaik 9 Aug 12 15:49 osu_bw -> omb_pt2pt
lrwxrwxrwx. 1 wpaik wpaik 9 Aug 12 15:49 osu_latency -> omb_pt2pt
...One binary, thirteen symlinks pointing at it. It decides which benchmark to run from the name it was called by.
And here is the part that is easy to miss. There is an omb_pt2pt in both places, and they are not the same program:
[wpaik@carrier osu-micro-benchmarks]$ md5sum build/bin/omb_pt2pt build/libexec/osu-micro-benchmarks/mpi/pt2pt/omb_pt2pt
20379fd63dbbf1477e6827ff8aba39d9 build/bin/omb_pt2pt
18fe7e81374a8af2d23234666345de7e build/libexec/osu-micro-benchmarks/mpi/pt2pt/omb_pt2ptThe one in bin/ is a category runner that executes a whole group of tests. The one in libexec/ is the benchmark itself. Same name, different jobs.
6. The Result That Was Too Good #
Here is the first number this cluster produced. I pointed the bin/ runner at 8 ranks, and two of its tests, osu_mbw_mr and osu_multi_lat, came back with this:
# [ pairs: 4 ] [ window size: 64 ]
# Size Bandwidth (MB/s)
65536 19194.07
1048576 11971.60
# [ pairs: 4 ] [ window size: 1 ]
# Size Avg Latency(us)
1 0.4019 GB/s and 0.4 microseconds, on a network built from a gigabit switch and copper cable.
Gigabit Ethernet has a hard ceiling of 125 MB/s, and these two tests split 8 ranks into four pairs, so on a real gigabit link all four pairs would be sharing that 125 MB/s. The measurement was not wrong so much as it was measuring the wrong thing. Every pair had both of its ranks on the same node, and MPI had quietly used shared memory instead of the network. Nothing errored. Nothing warned. The benchmark ran perfectly and reported a number off by a factor of 150.
The output looked clean. No errors, no warnings, well-formatted numbers in neat columns. That is exactly what makes this kind of result dangerous: there is nothing in it to argue with unless you already know what your hardware can do. Verifying a result is a step worth taking even when, especially when, nothing complained.
The same run also reported eleven failures:
11 test(s) exited with failure:
test status
------------------------------ ------------------------------
osu_bw Invalid processes count or distribution
osu_bibw Invalid processes count or distribution
osu_latency Invalid processes count or distribution
...Those are not failures either. Most of them, osu_latency and osu_bw included, run with exactly two ranks, and the runner had handed them eight. The only two tests that accepted eight ranks were the multi-pair ones, and those are the two that produced the impossible numbers.
So call the binaries directly, two nodes, one rank each:
#!/bin/bash
#SBATCH -N 2
#SBATCH --ntasks-per-node=1
#SBATCH -t 30:00
module load openmpi
OMB=<YOUR_OSU_PREFIX>/libexec/osu-micro-benchmarks/mpi/pt2pt
srun --mpi=pmix hostname # must print two different hostnames
srun --mpi=pmix $OMB/osu_latency
srun --mpi=pmix $OMB/osu_bw
srun --mpi=pmix $OMB/osu_bibw7. What 1GbE Actually Does #
# OSU MPI Latency Test v8.0rc
# Size Avg Latency(us)
1 35.37
1024 59.43
1048576 9077.47
# OSU MPI Bandwidth Test v8.0rc
# Size Bandwidth (MB/s)
1024 95.92
16384 116.02
4194304 117.67
# OSU MPI Bi-Directional Bandwidth Test v8.0rc
# Size Bandwidth (MB/s)
4194304 233.78117.67 MB/s is the ceiling for this link. Gigabit Ethernet moves 125 MB/s of raw bits, but not all of those bits are your data. Every full-size packet costs 1538 bytes on the wire, and only 1448 of them are payload:
| Per packet | Bytes |
|---|---|
| Payload | 1448 |
| TCP header with timestamps option | 32 |
| IP header | 20 |
| Ethernet header and checksum | 18 |
| Preamble and inter-frame gap | 20 |
| Total on the wire | 1538 |
1448 / 1538 × 125 MB/s = 117.69 MB/s, and the measurement is 0.02 MB/s short of that. Both nodes report a 1500-byte MTU, 1000 Mb/s full duplex, and TCP timestamps on (the Linux default), so this is the math that applies here. At a 1500-byte MTU there is nothing left to tune on this link.
Bidirectional bandwidth is 233.78 MB/s, 99 percent of twice that ceiling. Full duplex gives each direction its own 1 Gb/s, so sending both ways at once costs almost nothing. A result near 117 here would point at a link running half duplex.
35 microseconds is the price of every message. Even a single byte costs that much, because the cost is the software stack and the switch, not the data. A thousand small messages that each have to arrive before the next one goes out add up to 35 milliseconds of pure waiting.
The bandwidth curve has no step at the MTU, which surprised me. Every point from 512 B to 32 KB fits size / 117.69 MB/s plus about 2 µs of per-message overhead, and below 64 B that overhead is closer to 3.4 µs. That 2 µs is what a message costs when messages are pipelined, and osu_bw keeps 64 of them in flight at once. The 35 µs above is what you pay when you stop and wait for each one. Above 64 KB the per-message cost climbs to roughly 5 µs, which lines up with the TCP BTL’s 64 KB eager limit, though I have not confirmed that is the cause.
Hold on to that 35 microseconds. It shows up again in section 9, in a completely different program.
8. HPL: How Fast Is the Whole Cluster? #
HPL is the benchmark behind the TOP500 list. It solves a large dense linear system and reports sustained floating point throughput in GFLOPS.
HPL measures performance by solving a dense system of linear equations in 64-bit double precision, and it needs a BLAS (Basic Linear Algebra Subprograms) library to do the arithmetic. This post uses OpenBLAS 0.3.33, the serial build, installed as a module. With the OpenBLAS module loaded, HPL can be built.
The build needs a Makefile to start from:
cd hpl-2.3
cd setup
sh make_generic
cp Make.UNKNOWN ../Make.linux
cd ..That template then needs editing before it will compile. Four blocks matter: ARCH, TOPdir, the MP* lines pointing at MPI, and the LA* lines pointing at BLAS (lines 64, 70, 84-86 and 95-97 in HPL 2.3). The edited lines look like this:
ARCH = linux
...
TOPdir = /shared/benchmark/hpl-2.3
...
MPdir = /shared/sw/openmpi/5.0.9
MPinc = -I$(MPdir)/include
MPlib = $(MPdir)/lib/libmpi.so
...
LAdir = /shared/sw/openblas/0.3.33
LAinc = -I$(LAdir)/include
LAlib = $(LAdir)/lib64/libopenblas.a
Then build with:
make arch=linuxThe binary lands in ./bin/linux/xhpl. It needs an HPL.dat next to it describing the problem size and the process grid.
Most of the work in tuning HPL happens in two values in that file.
N, the matrix order. The matrix holds N squared doubles, so it needs N * N * 8 bytes spread across all ranks. Aim for roughly 80 percent of total RAM. Overshoot and the node swaps, and you end up benchmarking your SSD.
P and Q, the process grid. P * Q must equal your rank count, and P should be less than or equal to Q.
There used to be a widely linked HPL.dat generator hosted by Advanced Clustering, and it was the first thing most people reached for. The article is still up, but the calculator inside it no longer renders, so there is nothing left to use. I wrote a replacement.
HPL.dat calculator
Enter physical cores, not the logical CPU count. On a node with
SMT, nproc reports twice the number you want.
The same logic is in the repo as tools/make_hpl_dat.py, standard library only, for generating the file on the cluster itself:
[wpaik@carrier ~]$ python3 tools/make_hpl_dat.py \
--nodes 2 --cores-per-node 4 --mem-per-node 16 \
--fraction 0.735 --expect-gflops 115 -o HPL.datThe runs in this post used --fraction 0.735 rather than the usual 0.8. On a 16 GB node, 80 percent leaves barely 3 GiB for the operating system, and a node that starts swapping is benchmarking its SSD rather than its CPU.
One field deserves care: physical cores, not logical CPUs. Every generator asks for a core count, and none of them can tell whether yours is reporting hyperthreads. Get it wrong and the process grid comes out twice the size it should be.
What it cannot see is your job script. Here is the same HPL.dat, N=41088 with P=2 and Q=4, run twice on the same afternoon with two different launch commands:
| Launch | Time (s) | GFLOPS |
|---|---|---|
mpirun -N 4 -n 8 ./xhpl |
427.54 | 108.17 |
srun ./xhpl under sbatch -N 2 -n 8 |
903.39 | 51.19 |
Same input, same nodes, less than half the throughput. With 8 physical cores at roughly 25.6 GFLOPS each, theoretical peak is about 205 GFLOPS, so the srun run sat at 25 percent efficiency.
Nothing in HPL.dat was wrong, and BLAS threading was not the cause either, since a serial OpenBLAS build cannot spawn threads at all. The difference was where the ranks landed. Running the same srun request with a trivial command shows where they go:
[wpaik@carrier ~]$ srun -p cpu -N 2 -n 8 bash -c 'echo "$(hostname) $(taskset -cp $$)"' | sort
interceptor-01 pid 244553's current affinity list: 0
interceptor-01 pid 244554's current affinity list: 1
interceptor-01 pid 244555's current affinity list: 2
interceptor-01 pid 244556's current affinity list: 3
interceptor-01 pid 244557's current affinity list: 4
interceptor-01 pid 244558's current affinity list: 5
interceptor-02 pid 275106's current affinity list: 0
interceptor-02 pid 275107's current affinity list: 1There are two problems in that output. First, -n 8 did not mean four per node: Slurm put six ranks on interceptor-01 and two on interceptor-02. Second, each rank was pinned to a single logical CPU, and logical CPUs 0 and 1 are the two hyperthreads of one physical core:
[wpaik@carrier ~]$ srun -p cpu -N 1 -n 1 cat /sys/devices/system/cpu/cpu0/topology/thread_siblings_list
0-1So interceptor-01 was running six ranks on three physical cores, interceptor-02 was running two on one, and four cores across the two nodes did nothing at all. --hint=nomultithread fixes both problems at once:
[wpaik@carrier ~]$ srun -p cpu -N 2 -n 8 --hint=nomultithread bash -c 'echo "$(hostname) $(taskset -cp $$)"' | sort
interceptor-01 pid 244615's current affinity list: 0
interceptor-01 pid 244616's current affinity list: 2
interceptor-01 pid 244617's current affinity list: 4
interceptor-01 pid 244618's current affinity list: 6
interceptor-02 pid 275139's current affinity list: 0
interceptor-02 pid 275140's current affinity list: 2
interceptor-02 pid 275141's current affinity list: 4
interceptor-02 pid 275142's current affinity list: 6Four ranks per node, one physical core each. In this case mpirun got the placement right on its own, and -N 4 asked for four per node explicitly. srun needs the hint on nodes with SMT. Every scaling run below uses these settings:
#SBATCH -N 2
#SBATCH --ntasks-per-node=4
#SBATCH --hint=nomultithreadexport OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1Those two exports do nothing for a serial BLAS build. They are there so the script still behaves if you swap in a threaded one later.
Half the cluster, lost to one missing line in a job script. It is worth putting that next to section 6, because the shape is the same: both times the number was wrong not because of what was running, but because of where it was running.
| Configuration | N | GFLOPS | Note |
|---|---|---|---|
| 1 node, 4 ranks | 39552 | 61.21 | baseline |
| 2 nodes, 8 ranks | 39552 | 115.07 | identical problem, 1.88x |
| 2 nodes, 8 ranks | 56064 | 112.73 | larger problem, same memory per node |
1.88x on two nodes is 94 percent parallel efficiency over a 117 MB/s network. Two things explain why it is that high. HPL does work proportional to N³ but communicates proportional to N², so at a large N it is far more forgiving of a slow network than most real applications. And these CPUs are slow enough to hide what communication remains: at about 14 GFLOPS per core there is plenty of time to talk between compute phases. Faster CPUs on the same switch would likely see the efficiency drop.
The third row is the weak scaling run: a matrix with twice the elements, so each node holds the same 11.7 GiB as the single-node baseline. It came in at 92 percent efficiency against 94 for strong scaling. With one run of each, a 2 percent gap could easily be run-to-run noise, so the honest reading is that the bigger problem did not raise throughput.
9. Game of Life: Hybrid Parallelism in One Picture #
MPI splits work across nodes. OpenMP splits work across cores inside a node. Real applications use both, and Conway’s Game of Life is small enough to show the pattern without taking over the episode.
The grid is split into horizontal slabs, one per rank. To compute the next generation, each rank needs to know the state of the row immediately above and below its own slab. Those borrowed rows are called halo rows, and exchanging them every generation is the entire communication pattern.

The red line is where one node’s slab ends and the next begins. The halo exchange runs every single generation, whether or not anything interesting is crossing it.
So what happens if the ranks stop talking? The code has a --no-halo flag that skips the exchange, which makes the simulation wrong on purpose.

The glider on the right walks into the boundary and stops. It does not die: it collapses into a 2x2 block, which is a still life, a pattern that never changes under the normal rules. From that rank’s point of view the universe simply ends at the edge of its slab, and a block sitting next to nothing is perfectly stable.
That is the failure mode worth internalizing. The program did not crash. It did not hang. It returned a plausible looking answer, quietly wrong, in the same amount of time.
halo=on 240 generations 22.682 ms alive=5
halo=OFF 240 generations 5.506 ms alive=4The computation is identical either way, so the 17.2 ms gap is pure communication. Divided across 480 exchanges that is 35.8 microseconds each.
Which is the number from section 7, measured by a completely different tool, in a completely different program. A microbenchmark is only useful if it predicts what your real code will experience, and here it did, within about one percent.
A full writeup of the halo exchange implementation is more than this episode can hold. That is coming as a standalone post.
10. When Is a Second Node Worth It? #
Adding a node is not free. It buys cores and costs communication, and which one wins depends entirely on how much work there is per unit of communication.
| Grid | Serial | OpenMP (4 threads) | MPI (2 nodes x 4 threads) |
|---|---|---|---|
| 120 | 12.1 ms | 4.4 ms | 9.8 ms |
| 500 | 187.8 ms | 61.5 ms | 41.1 ms |
| 1000 | 748.4 ms | 248.8 ms | 141.8 ms |
| 2000 | 3045 ms | 872 ms | 480 ms |
| 5000 | 18782 ms | 6380 ms | 3171 ms |
| 10000 | 75198 ms | 25007 ms | 12731 ms |
At a 120x120 grid the second node makes things worse: the MPI run is more than twice as slow as simply using four threads on one node. By 500x500 it has pulled ahead, and from 5000x5000 up it converges on 2.0x, which is perfect scaling for two nodes.
The reason is a ratio. Computation grows with the area of the grid, communication only with its edge. At 120x120 the grid holds 14,400 cells against a 120-cell boundary, a ratio of 120 to 1. At 10000x10000 the ratio is 10,000 to 1.
MPI does not make a program faster by itself. It adds a fixed cost that has to be paid every generation, and that cost only becomes worth paying once the problem is big enough to outweigh it. The useful question is never “is MPI faster”, it is “is my problem big enough yet”.
11. Troubleshooting #
A benchmark reports impossibly good numbers
Check where the ranks landed before trusting anything. Two different hostnames or it never crossed the network.
[wpaik@carrier ~]$ srun --mpi=pmix hostnameInvalid processes count or distribution
Most OSU pt2pt tests, osu_latency and osu_bw included, take exactly two ranks. Use -N 2 --ntasks-per-node=1 and call the binary in libexec/ rather than the runner in bin/.
Only three files in bin/ after installing OSU
Not a broken install. The benchmarks are under libexec/, where every test name is a symlink to a single binary. Note that bin/omb_pt2pt and the libexec file of the same name are different programs.
OpenMP threads all land on one core
Slurm 22.05 stopped passing --cpus-per-task down to srun, and 24.05 reverted it. Set it explicitly and the behaviour is the same on every version.
export SRUN_CPUS_PER_TASK=$SLURM_CPUS_PER_TASKThe cluster in this post runs Slurm 25.11.1, which is after the revert, so srun inherits --cpus-per-task here and the export changes nothing. It matters on 22.05 through 23.11, where srun does not inherit it and threads quietly pile onto one core.
HPL runs but GFLOPS is far below expectations
Check where the ranks landed before touching HPL.dat. On nodes with SMT, srun without --hint=nomultithread can put two ranks on one physical core, and -n alone does not guarantee an even split across nodes. The taskset one-liner from section 8 shows both in seconds. Then confirm that P * Q equals your physical core count, not your logical CPU count.
12. What Is Next #
The cluster now runs real parallel workloads across nodes, and you have measured numbers for what its network and CPUs can do rather than guesses. Those numbers are the baseline everything after this gets compared against.
Episode 9 is the finale: adding GPUs, configuring Slurm’s GRES for them, and finding out what changes when the compute gets fast enough that 117 MB/s starts to hurt.
All job scripts, HPL input files, and source code from this episode are in the GitHub repository.
Happy Computing!