MathGroup Archive 2008

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

Search the Archive

Re: Enable multicore calculation ?

  • To: mathgroup at
  • Subject: [mg88178] Re: Enable multicore calculation ?
  • From: Szabolcs Horvát <szhorvat at>
  • Date: Sun, 27 Apr 2008 04:59:13 -0400 (EDT)
  • Organization: University of Bergen
  • References: <fuumac$877$> <fuv09k$eje$>

Michael Weyrauch wrote:
> Hello,
>    I run some larger calculations on Linux with Mathematica and 
> 8 cores essentially using NDSolve, and these calculations definitly use
> usually 4 cores without any interference from my side. Mathematica
> seems to detect the multicore environment automatically and the
> software acts then accordingly. In a sense I was (positively) surprised.
>    However, not everything in Mathematica supports multicore, and it is
> my guess and partly my experience that it is mostly (maybe only) 
> numerical stuff which uses multicores.

Dear Michael,

I do not have access to any multiprocessor machines which have 
Mathematica.  I am curious:  do functions like Map or Inner use multiple 
  processors (in principle it is easy to parallellize these)?  More 
generally, can those functions that call other Mathematica functions use 
more than one processor?  Or is this capability restricted to built-in 
operations that are implemented at a lower level than the Mathematica 
language (such as numerical linear algebra)?

Is it guaranteed that Map evaluates the elements of a list in order? 
What about misuses such as the following:

a = 123;
Map[(a = 100 + Mod[a, #]) &, {5, 6, 7, 8}];

(Actually this one must be pretty hard to parallellize even if there are 
no guarantees about evaluation order.)


  • Prev by Date: delayed function assignment
  • Next by Date: Re: ConstantArray and List
  • Previous by thread: Re: Enable multicore calculation ?
  • Next by thread: Re: Enable multicore calculation ?