MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

ProgressIndicator and ParallelTable problem :(

  • To: mathgroup at smc.vnet.net
  • Subject: [mg117927] ProgressIndicator and ParallelTable problem :(
  • From: psycho_dad <s.nesseris at gmail.com>
  • Date: Mon, 4 Apr 2011 06:32:30 -0400 (EDT)

Hi all,
I am trying to use the ProgressIndicator with a parallel evaluation.
If I just do the calculation inside a normal Table then the following
piece of code works OK, ie the ProgressIndicator actually progresses.

In[1]:= ProgressIndicator[Dynamic[x],{1,8}]

In[2]:= Table[Pause[0.05];f[x],{x,1,8}]//AbsoluteTiming
Out[2]= {0.4000228,{f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8]}}

However, if I use the ParallelTable instead, then the calculation is
done much faster as expected but the ProgressIndicator does not work.

In[3]:= ParallelTable[Pause[0.05];f[x],{x,1,8}]//AbsoluteTiming
Out[3]= {0.0650038,{f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8]}}

Any ideas why this happens?

To make my question more clear, what I would like to be able to do is
to have the ProgressIndicator update every time one of the parallel
Kernels finishes its calculation, with 100% achieved when all
calculations are done. Is there any way this can be achieved?

Thanks for any hints/ideas/help!

Cheers


  • Prev by Date: PlotLegend and Show
  • Next by Date: Re: bash script in mathematica?
  • Previous by thread: Re: PlotLegend and Show
  • Next by thread: Re: ProgressIndicator and ParallelTable problem :(