Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: Multithreading not working?
Date: Tue, 27 May 2008 19:35:10 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 22
Message-ID: <g1hnpe$obt$1@canopus.cc.umanitoba.ca>
References: <g1hjee$k00$1@fred.mathworks.com> <g1hm33$lsm$1@canopus.cc.umanitoba.ca> <g1hmt3$bvb$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1211916910 24957 192.70.172.160 (27 May 2008 19:35:10 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 27 May 2008 19:35:10 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:470703



In article <g1hmt3$bvb$1@fred.mathworks.com>,
David Doria <daviddoria@gmail.com> wrote:

>Oh, I thought this would act like openMP does in c++, just
>starting threads to "parallelize" a simple loop.  Is there
>no way to do this?

No, Matlab does not do that at present. It is my understanding,
reading between the lines, that Mathworks is working on improving
Matlab's ability to detect parallizable code.

One of the toolboxes supports a 'parfor' instruction which can
be used to specifically parallize sections.

Other than that -- only to the extent that Matlab manages to figure
out that your expression matches something in BLAS. I -have- seen
Matlab convert some expressions into BLAS calls (I could tell by
the timing)... I was a bit surprised at the sophistication that it
already has in doing that, as the code I had written was not obviously
BLAS-able.
-- 
   "History is a pile of debris"                     -- Laurie Anderson