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
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
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
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
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:
>>
>>
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
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
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(
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
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
10 matches
Mail list logo