I'm running r 2. on a mac running 10.6.4 and a dual-core macbook pro.  I'm 
having a funny time with multicore.  When I run it with 2 cores, mclapply, R 
borks with the following error.

The process has forked and you cannot use this CoreFoundation functionality 
safely. You MUST exec().
Break on 
__THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
 to debug.


If, however, I crank the # of cores back to 1, it runs just fine.

The code looks as follows:


mmi_fits<-mclapply(responses, function(a_response){
                        gmult<-glmulti(glm(make_formula(a_response, sp), 
data=df, family=binomial))
                        return(gmult)
                        }, 
                mc.cores=2)


-Jarrett
______________________________________________
R-help@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.

Reply via email to