From: Thomas Britton on 25 Apr 2010 14:31 > where to implement parfor in below mentioned code :: > for <... > > for <... > > <statements> > if <condition> > else if <condition> > <statement> > else > <statement> > end > end > end > end You could put it in either of the for loops at the start. Try putting it in and see what the MLINT message is. You may have a variable problem, as you can only index variables consistently through the parfor loops, See the matlab video on the webinars that deals with this: http://www.mathworks.com/company/events/webinars/wbnr41916.html?seq=1 Also see the built in documentation/ bits on the website I've already linked to. Above all, give it a try. Put a tic and toc at the top and bottom and run it with parfor in both places and see what happens. Generally you should see close to a Nx improvement (where N is the number of processors). You will probably not get 2x due to communication overheads, but you can get close... Ben
First
|
Prev
|
Pages: 1 2 Prev: www.voguesneakers.com Cheap Jordan Shoes,Cheap Air Max Shoes Next: gmsk filter in receiver |