ArtPoon / kamphir

Phylogenetic inference using a tree-shape kernel in an Approximate Bayesian Computation framework
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

R parallel appears to be only spawning 2 processes in mclapply() #10

Closed ArtPoon closed 9 years ago

ArtPoon commented 9 years ago

Based on monitoring top output. detectCores() returns the correct number (12). Also tried calling Rscript from Python to see if this affected number of cores.

ArtPoon commented 9 years ago

You have to set mc.cores in mclapply(). The line:

mc <- getOption('mc.cores', n.cores)

has no effect.