Re: [R] Parallel computing on Windows (foreach)

2012-07-26 Thread R. Michael Weylandt
It's sad, but not an impossible result with synchronization overhead (though I wouldn't have guessed it would be that bad) -- can you try it on a more reasonable benchmark? Also, that advice might be somewhat out of date -- why not use the tools provided in library(parallel) available for recen

Re: [R] Parallel computing on Windows (foreach)

2012-07-26 Thread deep123
Hello all, My problem is similar to Sergey's. I could not try what Mario suggested, since doMPI is not available for windows. I have tried the Cedrick's commands, i.e. cl.tmp = makeCluster(rep("localhost",2), type="SOCK") registerDoSNOW(cl.tmp) but this is instead increasing the time taken. Fo

Re: [R] Parallel computing on Windows (foreach) (Sergey Goriatchev)

2010-06-16 Thread Tal Galili
Hi all, Just for the record, this is the link to the blog post: http://www.r-statistics.com/2010/04/parallel-multicore-processing-with-r-on-windows/ You can run work in parallel in multiple processors. Although it is only worthwhile when each "task" takes a long time to run (I give an example to

Re: [R] Parallel computing on Windows (foreach) (Sergey Goriatchev)

2010-06-16 Thread Sergey Goriatchev
John, Steve, thank you for answering my post! On Wed, Jun 16, 2010 at 20:55, Steve Lianoglou wrote: > Hi, > > I think I lost the reference email somewhere, but: > >> Not only is the sequential foreach much slower than the simple >> for-loop (as least in this particular instance), but I am not qui

Re: [R] Parallel computing on Windows (foreach)

2010-06-16 Thread Sergey Goriatchev
Thank you, Mario. On Wed, Jun 16, 2010 at 14:51, Mario Valle wrote: > > > On 15-Jun-10 17:07, Sergey Goriatchev wrote: >> >> Hello, >> >> I am reading "Using The foreach Package" document and I have tried the >> following: >> >>

Re: [R] Parallel computing on Windows (foreach) (Sergey Goriatchev)

2010-06-16 Thread Steve Lianoglou
Hi, I think I lost the reference email somewhere, but: > Not only is the sequential foreach much slower than the simple > for-loop (as least in this particular instance), but I am not quite > sure how to make foreach run parallel. Where would I get this parallel > backend? I looked at doMC and do

Re: [R] Parallel computing on Windows (foreach) (Sergey Goriatchev)

2010-06-16 Thread Jay Emerson
foreach (or virtually anything you might use for concurrent programming) only really makes sense if the work the "clients" are doing is substantial enough to overwhelm the communication overhead. And there are many ways to accomplish the same task more or less efficiently (for example, doing block

Re: [R] Parallel computing on Windows (foreach)

2010-06-16 Thread Cedrick W. Johnson
Here's what I do to get processors on my Windows machine (it should work for dual cores as well) fully engaged in a calculation (wow I like that) require(snow) require(doSNOW) require(foreach) #change the 8 to however many cores/phys processors you have on your machine cl.tmp = makeCluster(rep(

Re: [R] Parallel computing on Windows (foreach)

2010-06-16 Thread Mario Valle
On 15-Jun-10 17:07, Sergey Goriatchev wrote: Hello, I am reading "Using The foreach Package" document and I have tried the following: - sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=Ge

[R] Parallel computing on Windows (foreach)

2010-06-15 Thread Sergey Goriatchev
Hello, I am reading "Using The foreach Package" document and I have tried the following: - > sessionInfo() R version 2.10.1 (2009-12-14) i386-pc-mingw32 locale: [1] LC_COLLATE=German_Switzerland.1252 LC_CTYPE=German_Switzerland