<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169003</link>
    <title>MATLAB Central Newsreader - multithreading</title>
    <description>Feed for thread: multithreading</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 09 May 2008 13:53:33 -0400</pubDate>
      <title>multithreading</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169003#431251</link>
      <author>wapo</author>
      <description>Hi all,&lt;br&gt;
&lt;br&gt;
Lets assume that I have a matrix like:&lt;br&gt;
&lt;br&gt;
mtrx=rand(2,100);&lt;br&gt;
&lt;br&gt;
If I have a system with multiple processors and I have the&lt;br&gt;
multithreading option on how do I perform a row-wise operation on the&lt;br&gt;
matrix but I specifically assign each thread to take care of one row.&lt;br&gt;
For example I want to find the sum for each row, so:&lt;br&gt;
&lt;br&gt;
Thread 1: sum(mtrx(1,:))&lt;br&gt;
Thread 1: sum(mtrx(2,:))&lt;br&gt;
&lt;br&gt;
Thanks in advance&lt;br&gt;
&lt;br&gt;
Apo&lt;br&gt;
&lt;br&gt;
Ps. I used sum as an example. I am interested in more complicated&lt;br&gt;
operations.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 09 May 2008 14:13:05 -0400</pubDate>
      <title>Re: multithreading</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169003#431253</link>
      <author>Steve Amphlett</author>
      <description>wapo &amp;lt;apostolos.georgakis@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;ec0cbb1d-abce-49e7-a13e-&lt;br&gt;
523dd7fad1a8@k13g2000hse.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Lets assume that I have a matrix like:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; mtrx=rand(2,100);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If I have a system with multiple processors and I have the&lt;br&gt;
&amp;gt; multithreading option on how do I perform a row-wise &lt;br&gt;
operation on the&lt;br&gt;
&amp;gt; matrix but I specifically assign each thread to take care &lt;br&gt;
of one row.&lt;br&gt;
&amp;gt; For example I want to find the sum for each row, so:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thread 1: sum(mtrx(1,:))&lt;br&gt;
&amp;gt; Thread 1: sum(mtrx(2,:))&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks in advance&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Apo&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Ps. I used sum as an example. I am interested in more &lt;br&gt;
complicated&lt;br&gt;
&amp;gt; operations.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com"&gt;http://www.mathworks.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Type multithreaded into the search box.  This is the first &lt;br&gt;
hit:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.mathworks.com/products/matlab/demos.html?"&gt;http://www.mathworks.com/products/matlab/demos.html?&lt;/a&gt;&lt;br&gt;
file=/products/demos/shipping/matlab/multithreadedcomputatio&lt;br&gt;
ns.html&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 12 May 2008 06:35:59 -0400</pubDate>
      <title>Re: multithreading</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169003#431508</link>
      <author>wapo</author>
      <description>I wish it was that simple. It looks like that the demo requires the&lt;br&gt;
distributed computing toolbox or something similar. I am looking for a&lt;br&gt;
way to manually assign tasks to threads.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 12 May 2008 21:16:15 -0400</pubDate>
      <title>Re: multithreading</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169003#431670</link>
      <author>Ben</author>
      <description>On May 12, 2:35 am, wapo &amp;lt;apostolos.georga...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; I wish it was that simple. It looks like that the demo requires the&lt;br&gt;
&amp;gt; distributed computing toolbox or something similar. I am looking for a&lt;br&gt;
&amp;gt; way to manually assign tasks to threads.&lt;br&gt;
&lt;br&gt;
Just an FYI: there are high level packages for doing multiprocessor&lt;br&gt;
computing with matlab, called Star-P:&lt;br&gt;
&lt;a href="http://www.interactivesupercomputing.com/productinfo/pdf/dataSheet_star-p_matlab_lowres.pdf"&gt;http://www.interactivesupercomputing.com/productinfo/pdf/dataSheet_star-p_matlab_lowres.pdf&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
It would really be nice if Matlab did what you're asking, similar to&lt;br&gt;
openMP directives in other languages.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
