Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
> I encourage you to read the source code of this @parallel stuff -- > it's only about 2 pages of actual code, > which I wrote at some Sage days as my project back in maybe 2008. Will do, thanks again! -- You received this message because you are subscribed to the Google Groups "sage-support" g

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread William A Stein
On Mon, Aug 4, 2014 at 8:48 AM, Christian Stump wrote: > Thanks, William! > >> It absolutely will use two additional *processes*, as you might see by >> watching with htop, top, or using ps. > > Is it right that the master process is creating all the subprocesses? > I'd suspect I don't quite see t

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
Thanks, William! > It absolutely will use two additional *processes*, as you might see by > watching with htop, top, or using ps. Is it right that the master process is creating all the subprocesses? I'd suspect I don't quite see the other processes in action simply because they are there only fo

Re: [sage-support] parallelize for-loop with side effects

2014-08-04 Thread William A Stein
On Mon, Aug 4, 2014 at 2:38 AM, Christian Stump wrote: > Hi there, > > I wonder how to parallelize the following scenario. > > I have a method that initiates a (not very simple) data strucure and then > runs a for-loop (of, say, length 1,000-20,000) to populate that data > structure with data. The

[sage-support] parallelize for-loop with side effects

2014-08-04 Thread Christian Stump
Hi there, I wonder how to parallelize the following scenario. I have a method that initiates a (not very simple) data strucure and then runs a for-loop (of, say, length 1,000-20,000) to populate that data structure with data. The computations in each loop is not trivial, but fairly optimized u