I have a CFD code that I want to run on an HPC cluster. Of course, before it can be run, it first needs to be compiled.What is the best option between compiling on the head node and compiling on one of the compute nodes ? The hardware specifications of head and compute nodes are not necessarily identical, and sometimes all compute nodes aren't the same either : can that change the optimisation behaviour/efficiency of the compiler significantly ? What is the common best practice ?Of course, in case of compiling on computation nodes, I would be waiting for the workload manager (e.g. slurm) to grant RUN state to the job. The submission script would then compile the software and then run it. Doing otherwise would not be nice to the other users
HPC : should I compile on the head node or on a compute node?
hpc;compiling