| MATLAB Central > MATLAB Newsreader > parfor help: The variable mags in a parfor cann... |
|
|
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Matthew Date: 11 Aug, 2009 19:22:21 Message: 1 of 12 |
|
I would like to run some parallel for loops: |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Jeremy Greenwald Date: 12 Aug, 2009 13:50:15 Message: 2 of 12 |
|
The immediate problem is that the MAGS variable is sliced into using two |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Juliette Salexa Date: 13 Aug, 2009 04:03:18 Message: 3 of 12 |
|
My problem is very similar! |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Edric M Ellis Date: 13 Aug, 2009 08:12:56 Message: 4 of 12 |
|
"Juliette Salexa" <juliette.physicist@gmail.com> writes: |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Steven Lord Date: 13 Aug, 2009 14:02:40 Message: 5 of 12 |
|
|
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Matthew Date: 13 Aug, 2009 19:04:05 Message: 6 of 12 |
|
I have written Jeremy back with this problem, but I thought I would make everyone else aware as well. Declaring mags1 like he suggests does allow the code to run. However, the act of passing the relatively large mags matrix (It is usually 6*401*256 or bigger) in and out of the parfor loop as mags apparently makes a lot of extra overhead. I have a 2 processor machine, and the parfor version with mags1 is slightly slower than the normal version. Does this surprise you Steven? |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Jeremy Greenwald Date: 13 Aug, 2009 19:51:05 Message: 7 of 12 |
|
I did not receive an email from you Matt. Let me try and respond here. |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Jos Martin Date: 14 Aug, 2009 10:45:07 Message: 8 of 12 |
|
Matthew, |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Matthew Date: 14 Aug, 2009 18:27:03 Message: 9 of 12 |
|
First, let me say thanks to those who have taken an interest in this. I have not worked through Jos's latest suggestion, but Jeremy I have tried your iiMinus1 suggestion to make the indexing work in parfor. |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Matthew Date: 18 Aug, 2009 18:42:04 Message: 10 of 12 |
|
Hi Jos, |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Jos Martin Date: 24 Aug, 2009 10:51:03 Message: 11 of 12 |
|
Hi Matt, |
|
Subject: parfor help: The variable mags in a parfor cannot be classified. From: Matthew Date: 25 Aug, 2009 20:12:03 Message: 12 of 12 |
|
Jos Martin is a Matlab God! Thanks for the help. In all of this, I have neglected to open my pools. With them open to 2 (my # of CPU's) I am doubling my speed. Thanks to all on this thread for your help. It has been immensely educational. |
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 |
| parfor | Sprinceana | 13 Aug, 2009 01:48:21 |
| parallel computing | Matthew | 11 Aug, 2009 15:24:22 |
Contact us at files@mathworks.com
