Thread Subject: MATLAB suggesting 1 thread on multicore machine??

Subject: MATLAB suggesting 1 thread on multicore machine??

From: Sky Pelletier

Date: 6 Jun, 2008 16:00:18

Message: 1 of 3

Hello all,

I'm working on machine with an Intel Core 2 Quad Q6600
processor. When I select "Enable Multithreaded Computation"
in Preferences, the "Automatic" suggestion is 1 thread. I
manually set it to 4, but when I run the demo program from
the help file, comparing 4 threads to 1, I get either no
change or decreased performance with the 4 threads.

I'm running MATLAB version R2007b

Any help is greatly appreciated.
Sky Pelletier

Subject: MATLAB suggesting 1 thread on multicore machine??

From: Sebastiaan

Date: 6 Jun, 2008 21:27:01

Message: 2 of 3

What is your operating system? Does your system see all four
cores? What happends when you set the number of threads with
maxNumCompThreads(4) ?

Greetings,
Sebastiaan

Subject: MATLAB suggesting 1 thread on multicore machine??

From: Sky Pelletier

Date: 6 Jun, 2008 22:38:01

Message: 3 of 3

"Sebastiaan " <s.breedveld@erasmusmc.REMOVE.BOO.BOO.nl>
wrote in message <g2ca35$bak$1@fred.mathworks.com>...
> What is your operating system? Does your system see all four
> cores? What happends when you set the number of threads with
> maxNumCompThreads(4) ?
>
> Greetings,
> Sebastiaan

I'm running MS Windows XP Professional version 2002 service
pack 2

the OS sees all four cores.

I used the demo program multithreadedcomputations found in
the help files, which uses maxNumCompThreads to manually set
the number of threads to 2. I ran it using 2 and using 4
and both times the matrix multiply (the first benchmark it
runs) ran about .98 times as fast. Of the eight operations
it tests, only sqrt and .* were any faster, and they were
less than 1.25 times as fast as only using 1 thread...

Any ideas?

Thank you,
Sky

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com