Questions tagged [snowfall]

Usability wrapper around snow for easier development of parallel R programs.

66 questions
0
votes
1 answer

problems with $ using snowFall

I am trying to use snowFall to speed up my code using a cluster. I simplified version of my code would be library(snowfall) pbsnodefile = Sys.getenv("PBS_NODEFILE") machines <- scan(pbsnodefile, what="") machines nmach =…
0
votes
1 answer

R Snowfall - Call a parallel function within parallel function?

I have recently started using the Snowfall package in R. I have it working successfully in quite a complicated implementation, as follows (with the y loop processed in parallel): increment x from 1:100 { increment y from 1:100 { …
billelev
  • 369
  • 2
  • 13
0
votes
1 answer

Snowfall's sfApply and sfClusterApplyLB is slower than normal loop or sapply

When i apply this code in R, the loop and sapply are faster than snowfall's functions. What am i doing wrong? (using windows 8) library(snowfall) a<- 2 sfInit(parallel = TRUE, cpus = 4) wrapper <- function(x){((x*a)^2)/3} sfExport('a') values <-…
0
votes
2 answers

Using -snowfall- (or other packages) to parallel repeating a user-defined function

This question is related to this one, where I was asking how to replicate a user-defined function. Now I would like to parallelize the operations in order to save time. What I have preliminarly done is: I have defined a custom function my.fun(),…
Stefano Lombardi
  • 1,581
  • 2
  • 22
  • 48
0
votes
0 answers

Returning a separate matrix for each element of the vector passed to 'apply( )'

Been searching around a bit, and haven't found an elegant solution to this issue yet. I am trying to use the 'snowfall' package to run a simulation on multiple cores. This uses sfApply(), sfSapply, or sfLapply(). To get past the complications of…
user1399311
  • 271
  • 2
  • 12
1 2 3 4
5