Thread Subject: Why remove maxNumCompThreads in future versions?

Subject: Why remove maxNumCompThreads in future versions?

From: Sebastiaan

Date: 16 Sep, 2009 13:39:02

Message: 1 of 4

With the release of R2009b, the maxNumCompThreads command is announced to be removed in future releases:

---
Note maxNumCompThreads will be removed in a future version. You can set the -singleCompThread option when starting MATLAB to limit MATLAB to a single computational thread. By default, MATLAB makes use of the multithreading capabilities of the computer on which it is running.
---

For what reason? I find the command very useful for various reasons:
1) test scalability of a program/command
2) limiting resources when sharing a computer with different users

Anyone else who likes to keep this command in future releases?

--
Sebastiaan

Subject: Why remove maxNumCompThreads in future versions?

From: Steven Lord

Date: 18 Sep, 2009 13:49:55

Message: 2 of 4


"Sebastiaan" <s.breedveld@erasmusmc.REMOVE.BOO.BOO.nl> wrote in message
news:h8qppm$lj4$1@fred.mathworks.com...
> With the release of R2009b, the maxNumCompThreads command is announced to
> be removed in future releases:
>
> ---
> Note maxNumCompThreads will be removed in a future version. You can set
> the -singleCompThread option when starting MATLAB to limit MATLAB to a
> single computational thread. By default, MATLAB makes use of the
> multithreading capabilities of the computer on which it is running.
> ---
>
> For what reason? I find the command very useful for various reasons:
> 1) test scalability of a program/command
> 2) limiting resources when sharing a computer with different users
>
> Anyone else who likes to keep this command in future releases?

maxNumCompThreads is being removed for (in part) the same reasons we removed
the capability to control the number of threads via the Preferences panel in
R2009a:

http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bry1ecg-1.html#br1ask3-1

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Subject: Why remove maxNumCompThreads in future versions?

From: Sebastiaan

Date: 21 Sep, 2009 09:22:01

Message: 3 of 4

"Steven Lord" <slord@mathworks.com> wrote in message

> maxNumCompThreads is being removed for (in part) the same reasons we removed
> the capability to control the number of threads via the Preferences panel in
> R2009a:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bry1ecg-1.html#br1ask3-1
>
Does this mean that Matlab is going to have a more advanced execution scheme in future releases? E.g.

for i=1:10
 A{i} = rand(i,i);
 b{i} = ones(i, 1);
 x{i} = A{i}\b{i};
end

Will the loop be multithreaded into 10 threads (without the parallel computing toolbox), whereas the linsolve uses the OpenMP multithreading?

Subject: Why remove maxNumCompThreads in future versions?

From: Ondrej Glembek

Date: 17 Jan, 2011 15:13:05

Message: 4 of 4

Hi,

is there any way of finding out how many threads are going to be used and controlling this number when starting new matlab session?

Our machines are shared among multiple users and the policy desn't allow one to use all cores. However, -singleCompThread is too limiting. maxNumCompThread was a nice feature but since it's not supported anymore, it's very difficult to run some of our experiments.

Thank you
Ondrej Glembek


"Steven Lord" <slord@mathworks.com> wrote in message <h9035k$9a8$1@fred.mathworks.com>...
>
> "Sebastiaan" <s.breedveld@erasmusmc.REMOVE.BOO.BOO.nl> wrote in message
> news:h8qppm$lj4$1@fred.mathworks.com...
> > With the release of R2009b, the maxNumCompThreads command is announced to
> > be removed in future releases:
> >
> > ---
> > Note maxNumCompThreads will be removed in a future version. You can set
> > the -singleCompThread option when starting MATLAB to limit MATLAB to a
> > single computational thread. By default, MATLAB makes use of the
> > multithreading capabilities of the computer on which it is running.
> > ---
> >
> > For what reason? I find the command very useful for various reasons:
> > 1) test scalability of a program/command
> > 2) limiting resources when sharing a computer with different users
> >
> > Anyone else who likes to keep this command in future releases?
>
> maxNumCompThreads is being removed for (in part) the same reasons we removed
> the capability to control the number of threads via the Preferences panel in
> R2009a:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bry1ecg-1.html#br1ask3-1
>
> --
> Steve Lord
> slord@mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
multithreading Sebastiaan 16 Sep, 2009 09:44:04
maxnumcompthreads Sebastiaan 16 Sep, 2009 09:44:03
rssFeed for this Thread

Contact us at files@mathworks.com