[R-sig-hpc] undesired forking from either doMC, foreach or multicore

Curt Hagenlocher curt at hagenlocher.org
Sat Jan 8 22:01:34 CET 2011


On Sat, Jan 8, 2011 at 12:21 PM, Michael Braun <braunm at mit.edu> wrote:
>
> Thanks for the suggestion.  I am not calling additional parallelized routines from the
> threaded functions.  However, I am using the threaded version of the Intel MKL BLAS,
> and there are matrix manipulations in the threaded functions.  Even though MKL is
> supposed to be thread-safe, would it make sense that this is what is causing the problem?

Yep. Threading and forking interact poorly.

Sample link: http://stackoverflow.com/questions/1235516/fork-in-multi-threaded-program

--
Curt Hagenlocher
curt at hagenlocher.org



More information about the R-sig-hpc mailing list