Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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


  • Prev by Date: Re: usage of TrigToExp?
  • Next by Date: Re: usage of TrigToExp?
  • Previous by thread: Re: Parallel computing with Mathematica 7?
  • Next by thread: Re: webMathematica - comments, opinions, user group (?)