Dear all,
I am using the SNOW library to compute a function.
I start the cluster through the command:
cl <- makeCluster(6, "SOCK")
and then program a function sll0 and execute the function on each node by doing:
sll <- function(param,fixed_par){
do.call("sum",clusterCall(cl,sll0, param = param, fixed = NA))
}
Executing the program on different values, the results are the following:
v2 <- sll(para2, NA) v2
[1] 54788.49
para3 <- para2 + 0.9 v3 <- sll(para3, NA) v3
[1] 54788.49
v3 <- sll(para3, NA) v3
[1] 67962.31 It seems to me that there is a problem when the results are returned to the program : it keeps in memory the previous result and gives it to the next operation... Have you ever seen this before? What can I do to solve it? Best, Maxime