Re: [R] Split the work for many cores

2012-05-12 Thread Norm Matloff
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 Subject:

Re: [R] Split the work for many cores

2012-05-10 Thread R. Michael Weylandt
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 wrote: > Dear all, > I am using my

[R] Split the work for many cores

2012-05-10 Thread Alaios
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