An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20140808/a0379f8d/attachment.pl>
error: object '.doSnowGlobals' not found?
4 messages · Rajendra Kumar, Stefan Thomas
Hi Rajendra Kumar, I think you are trying to start a SOCKS cluster (same machine) in a MPI environment (distributed machines). Have you tried cl<-makeCluster(type="MPI",4) after creating and setting the orte-hostfile? best stef Am 08.08.2014 um 07:13 schrieb Rajendra Kumar:
Dear R HPC Users,
I'm trying to parallelize a code on 4 nodes(type = "SOCK"). Here is my code.
library(itertools)
library(foreach)
library(doParallel)
library(parallel)
workers <- ip address of 4 nodes
cl = makePSOCKcluster(workers, master="ip address of master")
registerDoParallel(cl)
z <- read.csv("ProcessedData.csv", header=TRUE, as.is=TRUE)
z <- as.matrix(z)
system.time({
chunks <- getDoParWorkers()
b <- foreach (these = isplitIndices(nrow(z),
chunks=chunks),
.combine = c) %dopar% {
a <- rep(0, length(these))
for (i in 1:length(these)) {
a[i] <- mean(z[these[i],])
}
a
}
})
I get this error..4 nodes produced errors; first error: object
'.doSnowGlobals' not found. This code runs fine if I'm using doMC i.e using
the same machine's cores. But when I try to use other computers for
parallel computing I get the above error. When I change it to
registerDoSNOW the error persists.
Does snow and DoSNOW work in a cluster? I could create nodes on the
localhost using snow but not on the cluster. Anyone out there using snow?
Thanks in advance.
With Warm Regards,
Rajendra Kumar M
Graduate Student.
School of Medical Science & Technology,
IIT Kharagpur,
West Bengal-721302.
[[alternative HTML version deleted]]
_______________________________________________ R-sig-hpc mailing list R-sig-hpc at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-hpc
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20140808/e8c93975/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-hpc/attachments/20140808/34f27822/attachment.pl>