Under Linux (SUSE Linux Enterprise 11) for Mathematica Version 10.2/10.3 I observe the following error in parallel
libGL error: Try again with LIBGL_DEBUG=verbose for more details.
libGL error: failed to load driver: swrast
for the sub-kernels. This error does not occur for the master-kernel just for the sub-kernels. I also do not observe this kind of failure for Mathematica Version 10.0.
It seems to me that this failure causes an huge overhead in parallel when I execute the following function
LaunchKernels[12]
exportFrames[baseName_, a_, ext_:"jpg"] := Module[{l = Length[a], d},
d = Length@IntegerDigits[l];
ParallelTable[Export[baseName <> IntegerString[i, 10, d] <> "." <> ext, Style[a[[i]],Magnification->1.5]], {i, l}]
]
exportFrames["Exp11krmovie",a1]
This function let me render and export several hundreds or thousands graphics in parallel. For instance, under Mathematica Version 10.0 I can render and export a test sample of several hundreds graphics in less than a quarter of an hour. In contrast, under Mathematica 10.2/10.3 I can only generate 1/3 of the sample in an hour.
Inspection by the network tool iftop reveals an one-sided network traffic. Moreover, the tool htop shows me that only the master-kernel is working and the sub-kernels are only showing up sporadical. As a consequence, there is no continuous flow of rendering and exporting the graphic files as under Mathematica 10.0. In average, each 4 minutes it starts to generate a set of 12 graphic files, whereas the whole cycle ends at least after 2 minutes.
Any idea how I can get rid of this error for the sub-kernels? How can I reset the graphic rendering from a software rendering back to a hardware rendering under Mathematica 10.3?
SystemInformation[]
. Are you using an NVIDIA video card? Is there any difference if you doParallelEvaluate[SetOptions[Developer`InstallFrontEnd, Developer`LaunchFlags -> "-mesa"]];
before exporting? $\endgroup$ – ilian Oct 30 '15 at 21:07