I'm having my first experience using R and clusters. Searching on Google, I discovered the package "doMPI". This package allow me to automatizate the creation of processes. However, I'm little confuse on the functions.
1 - What is the difference between startMPIcluster and registerDOMPI?
2 - What is the argue passed on the startMPIcluster?
3 - When I use the command mpirun -H n1,n2,n3 -n 1 R --slave -f sincMPI.R
, what does it means the -n 1
?
4 - For the last, suppose that I have 4 clusters, each one with 60 CPUS. How would it be my code?