All,<div> I'm have an application/main program that I need to debug on an Intel Quad core machine that is running Windows XP. I'm using Visual Studio 2005 and have set up the debugger to use MPI (followed the instructions on their website). Here is how my main program looks (and please let me know if i need to change its structure):</div>
<div><br></div><div>int main()</div><div>{</div><div> MPI Initialize;</div><div><br></div><div> let all 4 processors read the input files;</div><div><br></div><div> instantiate class1;</div><div> instantiate array1 to hold output1 from class1</div>
<div><br></div><div> if ( rank==0 ) { class1-> process inputs and generate output1; copy output1 to array1; } // this filter that has been implemented as a class does not need to be parallelized</div><div> </div><div>
MPI_BCast( array1 to all nodes );</div><div><br></div><div> delete class1 object;</div><div> delete array1 object;</div><div><br></div><div> instantiate class2;</div><div> class2->process inputs, use output1 and generate output2; // this step has been parallelized</div>
<div><br></div><div> instantiate class3;</div><div> class3->process inputs, use output2 and generate output3; // this step has been parallelized</div><div><br></div><div> if ( rank==0 ) { write output3 to a file; }</div>
<div><br></div><div> delete class2 object;</div><div> delete class3 object;</div><div><br></div><div> MPI Finalize;</div><div>}</div><div><br></div><div>The code runs fine but I have some memory leaks and 'am working on fixing it. Visual Studio 2005 debugger hangs at the MPI_BCast command. I need to get past that command so I can find the memory leaks. Any thoughts on how to fix this will be greatly appreciated.</div>
<div><br></div><div>Thanks</div><div>Prashanth</div><div><br></div><div><br></div><div> </div>