I want to do parallel computing in a cluster, but I don’t know how to write hostfile correctly.
when I write:
cn8
cn9
in my hostfile, the listing file shows that only 2 MPI ranks and 1 OpnMP threads are set.
Both cn8 and cn9 have 24 cores. I only use MPI before. I usually write:
Do you have a batch scheduler on your system (any medium to large system should) ? If this is the case, you should ensure the “post-install” step is done correctly (see Code_Saturne installation manual), so that the MPI launch command can use inf from the batch system/resource manager rather than a hostsfile.
If you really need to use a hostsfile, you since the syntax of a hostsfile may depend on your MPI library, you should check the documentation in the matching library.