Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1463
| From | psycho_dad <s.nesseris@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | ProgressIndicator and ParallelTable problem :( |
| Date | 2011-04-04 10:32 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <inc6no$11g$1@smc.vnet.net> (permalink) |
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
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
ProgressIndicator and ParallelTable problem :( psycho_dad <s.nesseris@gmail.com> - 2011-04-04 10:32 +0000 Re: ProgressIndicator and ParallelTable problem :( Albert Retey <awnl@gmx-topmail.de> - 2011-04-05 10:41 +0000
csiph-web