Cluster programming

Cluster programming

Hello everyone    I am new to cluster programming in MPI. I have a master-slave program structure. Can anyone tell me, how to execute my MPI program on thi type of setup?

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

The answer depends on how you have your program set up.  If you are using a single program that recognizes based on rank number whether it is a master or slave, then you simply run as normal.  For example, if you are running 64 total ranks, using the hostfile ./hosts, you would run:

mpirun -f ./hosts -n 64 ./a.out <args>

If you have one binary for the master and a different binary for the slave, you can use an argument set to run.  So if you have 1 master rank and 63 slave ranks, you'd use:

mpirun -f ./hosts -n 1 ./master <master args> : -n 63 ./slave <slave args>

James Tullos
Technical Consulting Engineer
Intel® Cluster Tools

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya