[R] Split the work for many cores

R. Michael Weylandt michael.weylandt at gmail.com
Thu May 10 19:38:00 CEST 2012


library(parallel) # Requires R >=2.14
mclapply # a parallelized lapply()

You can process in parallel, but I'm not sure if it's safe to do
graphics in parallel: someone else will need to chime in about that.

Best,
Michael

On Thu, May 10, 2012 at 9:12 AM, Alaios <alaios at yahoo.com> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list