[R-sig-hpc] doMC and foreach can not use all cores
Brian G. Peterson
brian at braverock.com
Sun Aug 28 12:57:31 CEST 2011
On Sun, 2011-08-28 at 18:47 +0800, 该走了 wrote:
> Thank you for response firstly. But it is just a clerical error. In
> fact I do run registerDoMC(cores=4) in my code, it does not work
> still...
> Furthermore, when I use mclapply(), R use one core either. So i think
> the multicore package has some problem.
>
> 2011/8/28 Brian G. Peterson <brian at braverock.com>:
> > On Sun, 2011-08-28 at 14:54 +0800, 该走了 wrote:
> >> registerDoMC( core = 4 )
> >
> > your first problem is that the parameter is 'cores'
> >
> > registerDoMC(cores=4)
> > or
> > registerDoMC(4)
<on-list>
Please provide a reproducible example and the full contents of
sessionInfo, per the posting guide.
My machine utilizes all cores when using multicore and doMC, so you'll
need to provide a minimal reproducible example so that people can try to
help you saolve your problem.
Regards,
- Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
More information about the R-sig-hpc
mailing list