I often use the ParallelSubmit[]
to speed things up.
I also use Monitor[]
to keep track of the evaluations. However, I don’t know how to combine the two. When I do I get an error
FrontEndObject::notavail : A front end is not available; certain operations require a front end.
For example,
go[x_] := Module[{i}, Monitor[i = 0; While[i < x, Pause[0.1]; i++]; i, ProgressIndicator[i, {0, x}]]] LaunchKernels[]; DistributeDefinitions[go] parrallel = { ParallelSubmit[{go[10]}], ParallelSubmit[{go[10]}], ParallelSubmit[{go[10]}], ParallelSubmit[{go[10]}]} results = WaitAll[parrallel]
will give the error. Interestingly enough, I can keep track of the evaluations by changing Monitor[]
to Print[]
.
There is a similar question, but I don’t understand the solution, and it seems specific to the question.