My MPI program consists of a master process which sends messages to worker processes which then do the actual computation. The master process is single threaded whereas the worker processes are multi-threaded and use all CPU cores of a node.
In order that all CPU cores on all cluster nodes contribute to the computation I would like to specify that on exactly one of the cluster nodes there should be 2 processes i.e. the master process (proc_id = 0) and another worker process. On all other cluster nodes there should only be one worker process.
How can I achieve that?
Thanks.
mpiexec -n 100 ./my_executable
if the cluster has 100 nodes. – Linoliumzmpiexec -n 101 ./my_executable
if the cluster has 100 nodes and as described on one node there should be 2 processes i.e. the master process and one worker process. – Linoliumz