Commit 3088b98
committed
docker: fix OpenMPI parallel build
Change make -j ${nproc} to make -j $(nproc) in Dockerfile.cpu.
${nproc} expands to empty string (variable doesn't exist), causing
single-threaded builds. $(nproc) executes the nproc command to use
all available CPU cores.
This reduces OpenMPI build time from ~15-20 mins to ~5-8 mins on
4-core ARM64 runners.1 parent 6a70760 commit 3088b98
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments