search for: child_can_exit

Displaying 1 result from an estimated 1 matches for "child_can_exit".

2017 Jul 21
0
Problem with mclapply in package parallel
...en processes, as would be expected (ie compared to what happens on some other Linux machines that I am used to use). Trying to localize the problem, I have recompiled R (R-3.2.5, Intel compilers) after having the 'MC_DEBUG' macro activated in C file src/fork.c. It seems that global variable child_can_exit (declared as static int) is waited for change in function mc_exit but this never happens due to compiler's optimization configuration. A solution might be to declare variable child_can_exit as "static int volatile"; my tests work fine indeed. This is what I have done locally (ie no s...