An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100902/572910d9/attachment.pl>
elegant way to processing several loops in the same time
3 messages · gianni lavaredo, Carson Farmer, Kranstauber, Bart
Gianni, Have a look at the foreach package from REvolution Analytics. This lets you run each loop of a for loop on a separate processor. I used it for some bootstrapping work a while back and it works really nicely and simply: http://www.carsonfarmer.com/?p=668 Carson
On 2 September 2010 15:23, gianni lavaredo <gianni.lavaredo at gmail.com> wrote:
Dear Researchers, i am analyzing statistics of several grids image (i.e. 3 patch: A1, A2, A3) for my work with 4 resolution scale (0.5,1.0,1.5,2.0). This take a lot of time. I am asking about reference and web link to learn how I can run in the same time the same loop for the patch A1, A2 and A3. I open in the same time three windows of R but It's not elegant. Thanks in advance Gianni ? ? ? ?[[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Carson J. Q. Farmer ISSP Doctoral Fellow National Centre for Geocomputation National University of Ireland, Maynooth, http://www.carsonfarmer.com/
Hi Gianni Depending on the computer your using it can make sense do do things in parallel. If you have a single core chip it is not very useful to run multiple tasks at the same time, for multi core chips it is. There are a lot of possible ways to do that see: http://cran.r-project.org/web/views/HighPerformanceComputing.html I myself run sge (sun grid engine) on my own computer (ubuntu) and use the Rsge package to interface with it. This is mainly useful for me since it allows easy scaling up to cluster computers using sge. If your not planing that sge is maybe not the most sensible option. There is also a r-sig-hpc list that deals with high performance issues maybe it is worth going through the archive. Bart
On 09/02/2010 04:23 PM, gianni lavaredo wrote:
Dear Researchers, i am analyzing statistics of several grids image (i.e. 3 patch: A1, A2, A3) for my work with 4 resolution scale (0.5,1.0,1.5,2.0). This take a lot of time. I am asking about reference and web link to learn how I can run in the same time the same loop for the patch A1, A2 and A3. I open in the same time three windows of R but It's not elegant. Thanks in advance Gianni [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo