Skip to content

Bug using SNOW package

1 message · To Maxime

#
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:
[1] 54788.49
[1] 54788.49
[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