[R] Split the work for many cores

Norm Matloff matloff at cs.ucdavis.edu
Sun May 13 01:45:15 CEST 2012


One replier worried about doing multiple operations on the graphics
device in parallel.  To avoid this, try saving the output of your plot
function instead of immediately displaying it (if the function allows
this).  Then display everything when you're all done.

Norm Matloff

To: Alaios <alaios at yahoo.com>
Subject: Re: Split the work for many cores
In-Reply-To: <1336655568.56888.YahooMailNeo at web120106.mail.ne1.yahoo.com>
References: <1336655568.56888.YahooMailNeo at web120106.mail.ne1.yahoo.com>

In gmane.comp.lang.r.general, you wrote:
> Dear all,
> I am using my code the vgram.matrix of packets fields. I have around 500 matrices that I need to pass inside that function and then plot those results.
>
> Even though my system has 16 cores is quite clear that I am only using one of those.
> Would it be able to skip these 500 "tasks" to the 16 cores, with each processor having around 4 matrices to process?
>
> What would you suggest me doing?
>
> Regards
> Alex
>
> 	[[alternative HTML version deleted]]
>



More information about the R-help mailing list