How to write the hostfile for omp+mpi paralle?
Posted: Mon Dec 10, 2018 3:50 am
Hello,
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:
***********************
cn8 slots=24
cn9 slots=24
***********************
in my hostfile, and my command is:
***********************
mpirun -hostfile hostfile ./run_solver -p setup.xml &
***********************
It is OK.
How can I run my code in 2 nodes with 2 MPI and 24 OpenMP?
Did someone have an idea/tool for me?
Thanks
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:
***********************
cn8 slots=24
cn9 slots=24
***********************
in my hostfile, and my command is:
***********************
mpirun -hostfile hostfile ./run_solver -p setup.xml &
***********************
It is OK.
How can I run my code in 2 nodes with 2 MPI and 24 OpenMP?
Did someone have an idea/tool for me?
Thanks