Displaying 1 result from an estimated 1 matches for "vm0000".
Did you mean:
m0000
2011 Jun 27
0
how to have R tell me which node is being used in a multi-node cluster
Hi all,
I'm trying to use a parallel script on a 20 node cluster, 8 processors
per node. Each node has a name, e.g., "vm0000", "vm0001", etc. Within
a foreach loop, I would like R to tell me what node it is actually
running on. How can this be accomplished? Thanks!
require(doMPI)
cl <- startMPIcluster(16)
registerDoMPI(cl)
x <- foreach(i = 1:16) %dopar% {
<some function that writes the node name...