[R] parallel R?

David M Smith david at revolution-computing.com
Fri Jun 26 20:10:23 CEST 2009


On Fri, Jun 26, 2009 at 8:28 AM, Michael<comtech.usa at gmail.com> wrote:
> I guess when we move to Amazon AWS,
>
> we have to rewrite the whole R programs?

Not necessarily. I use foreach (currently available in our REvolution
R Enterprise distribution and coming very soon to CRAN), and test out
the parallel code on my dual-core laptop. When I'm ready to run the
big job, I just launch (say) 10 instances on Amazon EC2, use
joinSleigh() to hook them together, and then just run the same foreach
code. Now the same code is running on 10 distributed machines, no
rewrite necessary.

There's an extended example using foreach here:
http://blog.revolution-computing.com/2009/05/parallelized-backtesting-with-foreach.html

# David Smith


-- 
David M Smith <david at revolution-computing.com>
Director of Community, REvolution Computing www.revolution-computing.com
Tel: +1 (206) 577-4778 x3203 (San Francisco, USA)

Check out our upcoming events schedule at www.revolution-computing.com/events




More information about the R-help mailing list