Can the make command utilize the resources allocated to a SLURM job?
Yes. There is a patch available for GNU make version 3.81 available as part of the SLURM distribution in the file contribs/make.slurm.patch. This patch will use SLURM to launch tasks across a job’s current resource allocation. Depending upon the size of modules to be compiled, this may or may not improve performance. If most modules are thousands of lines long, the use of additional resources should more than compensate for the overhead of SLURM’s task launch. Use with make’s -j option within an existing SLURM allocation. Outside of a SLURM allocation, make’s behavior will be unchanged.