Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: Parallelize vs Compile

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119359] Re: Parallelize vs Compile
  • From: Oliver Ruebenkoenig <ruebenko at wolfram.com>
  • Date: Wed, 1 Jun 2011 04:30:00 -0400 (EDT)

On Tue, 31 May 2011, Nicholas Goble wrote:

> My code seems to run much more quickly when I only use Parallelize[] as
> compared to any combination of Parallelize and Compile.  Even when I compile
> into C using CompilationTarget->"C" and with Parallelization->True.
>
> I thought that compiling would always make a program in Mathematica run
> faster. Why does it slow down?

that is impossible to assess without seeing the code.

>  Is Parallelize always the most efficient?
>

no.

> Nicholas Goble
>
>
>
>


  • Prev by Date: Re: Evaluation control in Compile[]
  • Next by Date: Mapping to Create Nested Loops
  • Previous by thread: Re: Evaluation control in Compile[]
  • Next by thread: Re: Parallelize vs Compile