I am new to parallel computing in Mathematica. I am using
LaunchKernels[16]
ParallelTable[]
to parallelize calculations. The ParallelTable consists of approx 10000 elements that are calculated using a routine which in certain cases can take a couple of minutes to finish. After starting the notebook I get after a while a bunch of errors:
LinkObject::linkd: Unable to communicate with closed link LinkObject[/path/math -subkernel -noinit -mathlink, 102, 16].
KernelObject::rdead: Subkernel connected through KernelObject[16, local] appears dead.
Parallel`Developer`QueueRun::req: Requeueing evaluations {11} assigned to KernelObject[16, local, <defunct>].
LaunchKernels::clone: Kernel KernelObject[16, local, <defunct>] resurrected as KernelObject[16, local].
Now I was wondering, what might be the cause of these errors? What would be the proper solution in this case? I have read that there is a Mathlink timeout of 15 seconds. Would that mean that if my computations take longer than 15 seconds the kernel appears dead?
ParallelMap
. You can try the optionMethod -> "FinestGrained"
to minimize the time each kernel is busy without giving any feedback. $\endgroup$