Re: Parallel computing with Mathematica 7?
- To: mathgroup at smc.vnet.net
- Subject: [mg95472] Re: Parallel computing with Mathematica 7?
- From: mark mcclure <mcmcclur at unca.edu>
- Date: Mon, 19 Jan 2009 03:00:06 -0500 (EST)
- References: <gkppvv$dsp$1@smc.vnet.net> <gkscg4$efg$1@smc.vnet.net>
On Jan 18, 5:26 am, einsch... at gmail.com wrote: > (* parallelization fails because of MatrSize *) > MatrSize = 100; TableLength = 2; > t = AbsoluteTime[]; > Tim = Timing[ > ParallelTable[ > Tr[MatrixExp[ > Table[i j + i - 1., {i, 1, MatrSize}, {j, 1, MatrSize}]]], {i= , > 1, TableLength}]]; Be sure to call DistributeDefinitions[MatrSize] before you use MatrSize in a parallel computation. It might make sense to place TableLength in there too but it's not essential in this example, since ParallelTable only breaks the computation up along the inner most index. Mark McClure