Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
activate more than one core in Mathematica 6.0 (for win)?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
kristoph  
View profile   Translate to Translated (View Original)
 More options 3 Aug 2007, 11:49
Newsgroups: comp.soft-sys.math.mathematica
From: kristoph <kristophs.p...@web.de>
Date: Fri, 3 Aug 2007 10:49:53 +0000 (UTC)
Local: Fri 3 Aug 2007 11:49
Subject: activate more than one core in Mathematica 6.0 (for win)?
Hi,

How can Mathematica 6.0 use more than one core of a quad core cpu
under Windows Vista? During calculations the system requires only 25 %
of its capacity. This implies that it uses only one of the four cores.

Thanks for answer,
Kristoph


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens-Peer Kuska  
View profile   Translate to Translated (View Original)
 More options 4 Aug 2007, 10:54
Newsgroups: comp.soft-sys.math.mathematica
From: Jens-Peer Kuska <ku...@informatik.uni-leipzig.de>
Date: Sat, 4 Aug 2007 09:54:28 +0000 (UTC)
Local: Sat 4 Aug 2007 10:54
Subject: Re: activate more than one core in Mathematica 6.0 (for win)?
Hi,

that is the reason why there is a Parallel Computing Toolkit.

Regards
   Jens


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michael.p.crouc...@googlemail.com  
View profile   Translate to Translated (View Original)
(1 user)  More options 4 Aug 2007, 11:01
Newsgroups: comp.soft-sys.math.mathematica
From: michael.p.crouc...@googlemail.com
Date: Sat, 4 Aug 2007 10:01:34 +0000 (UTC)
Local: Sat 4 Aug 2007 11:01
Subject: Re: activate more than one core in Mathematica 6.0 (for win)?
On 3 Aug, 11:49, kristoph <kristophs.p...@web.de> wrote:

> Hi,

> How can Mathematica 6.0 use more than one core of a quad core cpu
> under Windows Vista? During calculations the system requires only 25 %
> of its capacity. This implies that it uses only one of the four cores.

> Thanks for answer,
> Kristoph

Hi Kristoph

As far as I know it is only certain linear algebra functions that
automatically make use of multiple cores.  On my dual core laptop
under windows and Mathematica 6 this seems to be working by default.
For example If I do

Timing[
 a = RandomReal[1, {1000, 1000}];
 b = SingularValueDecomposition[a];
 ]

I get a time of 5.9 (ish)  seconds.

Now in Mathematica 5.2 you could set the number of threads using the
operating system environment variable OMP_NUM_THREADS so I tried
setting this to 2 to see what happened - nothing!  The time stayed the
same.  However if I set it to 1 then the timing came out at 8.9
seconds.  This leads me to the conclusion that Mathematica 6
automatically makes use of multiple cores when it can but you can over-
ride its behavior using OMP_NUM_THREADS,   What would be nice is a
list of functions that makes use of multiple processors/cores.  I
think it is only certain BLAS/Lapack functions but am not sure.

As for Linux - I am confused!  I dual boot into Ubuntu on the same
laptop and this also has Mathematica 6.  The only thing that has
changed is the operating system - everything else is the same but I
get the following timings for the above code (to 1dp)

OMP_NUM_THREADS unset gives 8.8 seconds
OMP_NUM_THREADS=1 gives 8.5 seconds
OMP_NUM_THREADS=2 gives 8.8 seconds

using top I see the processor usage going over 100% when using 2
threads so it seems to be using both cores (only goes up to 100% on
one core). But using 2 cores is slower than one core and everything is
always slower than when I use my windows partition - so something is
messed up!

Best Regards,
Mike


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Marc Gulliet  
View profile   Translate to Translated (View Original)
 More options 4 Aug 2007, 11:18
Newsgroups: comp.soft-sys.math.mathematica
From: Jean-Marc Gulliet <jeanmarc.gull...@gmail.com>
Date: Sat, 4 Aug 2007 10:18:57 +0000 (UTC)
Local: Sat 4 Aug 2007 11:18
Subject: Re: activate more than one core in Mathematica 6.0 (for win)?

kristoph wrote:
> Hi,

> How can Mathematica 6.0 use more than one core of a quad core cpu
> under Windows Vista? During calculations the system requires only 25 %
> of its capacity. This implies that it uses only one of the four cores.

> Thanks for answer,
> Kristoph

You could try to increase the value of the system variable
OMP_NUM_THREADS to 4.

See the following thread for detail, "Performance--Dual Core"
http://groups.google.com/group/comp.soft-sys.math.mathematica/browse_...

Regards,
Jean-Marc


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kristoph  
View profile   Translate to Translated (View Original)
 More options 6 Aug 2007, 08:33
Newsgroups: comp.soft-sys.math.mathematica
From: kristoph <kristophs.p...@web.de>
Date: Mon, 6 Aug 2007 07:33:13 +0000 (UTC)
Local: Mon 6 Aug 2007 08:33
Subject: Re: activate more than one core in Mathematica 6.0 (for win)?
On 4 Aug., 11:54, Jens-Peer Kuska <ku...@informatik.uni-leipzig.de>
wrote:

Thanks for all the answers. Regarding the parallel toolkit I think it
is not up to date to separate it from the general version. But that's
how it is.

All the best,
Kristoph


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google