If I have a system with multiple processors and I have the
multithreading option on how do I perform a row-wise operation on the
matrix but I specifically assign each thread to take care of one row.
For example I want to find the sum for each row, so:
Thread 1: sum(mtrx(1,:))
Thread 1: sum(mtrx(2,:))
Thanks in advance
Apo
Ps. I used sum as an example. I am interested in more complicated
operations.
wapo <apostolos.georgakis@gmail.com> wrote in message
<ec0cbb1d-abce-49e7-a13e-
523dd7fad1a8@k13g2000hse.googlegroups.com>...
> Hi all,
>
> Lets assume that I have a matrix like:
>
> mtrx=rand(2,100);
>
> If I have a system with multiple processors and I have the
> multithreading option on how do I perform a row-wise
operation on the
> matrix but I specifically assign each thread to take care
of one row.
> For example I want to find the sum for each row, so:
>
> Thread 1: sum(mtrx(1,:))
> Thread 1: sum(mtrx(2,:))
>
> Thanks in advance
>
> Apo
>
> Ps. I used sum as an example. I am interested in more
complicated
> operations.
I wish it was that simple. It looks like that the demo requires the
distributed computing toolbox or something similar. I am looking for a
way to manually assign tasks to threads.
On May 12, 2:35 am, wapo <apostolos.georga...@gmail.com> wrote:
> I wish it was that simple. It looks like that the demo requires the
> distributed computing toolbox or something similar. I am looking for a
> way to manually assign tasks to threads.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.