Hi,<div><br></div><div>I am trying to run the attached program on, which when fully written will be an implementation for a 3D array where each element in the array will possible have a number of elements, so I would basically have a 4D array with a dimension that is position related. The class I have to write would accept the array if the current node is 0, and it would slice it in equal parts along the x-axis and send it to the slave nodes. You can completely ignore any code that is commented.</div>

<div><br></div><div>In the constructor DOFArr holds the number of elements in the 4th Dimension for each 3rd dimension place. DOFArr is a linear array, and any 3D position can be mapped into 1D using the LinearIndex function. The constructor simply gives the array some random values. It then splits the array into nNodes equal parts, where nNodes is the number of slave nodes. Of course  I will get a remainder so some slices will be wider by one unit. I will then send the offset which is the width of the slice. The NoDOF will be sent which is the width of the 4th Dimension. And then the data is sent one double at a time.</div>

<div><br></div><div>The Slave nodes pretty much mirror the master node except instead of sending they are receiving.</div><div><br></div><div>However when i run it from command line with &quot;mpiexec -n 3 MPIVDOFArray.exe&quot; , i get the following output:</div>

<div><br></div><div><div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

This application has requested the Runtime to terminate it in an unusual way.</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Please contact the application&#39;s support team for more information.</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<br></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

This application has requested the Runtime to terminate it in an unusual way.</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Please contact the application&#39;s support team for more information.</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Processors: 3</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

ProcessorID: 1</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Processors: 3</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

ProcessorID: 2</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Fatal error in MPI_Waitall: Other MPI error, error stack:</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPI_Waitall(261)..........................: MPI_Waitall(count=76, req_array=00529270, status_array=00529490) failed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDI_CH3i_Progress_wait(215).............: an error occurred while handling an event returned by MPIDU_Sock_Wait()</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDI_CH3I_Progress_handle_sock_event(420):</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDU_Sock_wait(2606).....................: The specified network name is no longer available. (errno 64)</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Processors: 3</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

ProcessorID: 0</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

Initialization done</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

job aborted:</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

rank: node: exit code[: error message]</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

0: C7June2010: 1: Fatal error in MPI_Waitall: Other MPI error, error stack:</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPI_Waitall(261)..........................: MPI_Waitall(count=76, req_array=00529270, status_array=00529490) failed</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDI_CH3i_Progress_wait(215).............: an error occurred while handling an event returned by MPIDU_Sock_Wait()</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDI_CH3I_Progress_handle_sock_event(420):</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

MPIDU_Sock_wait(2606).....................: The specified network name is no longer available. (errno 64)</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

1: C7June2010: 3: process 1 exited without calling finalize</blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

2: C7June2010: 3: process 2 exited without calling finalize</blockquote><div><br></div><div>Currently I am not testing the code on an actual cluster. I am just doing it on the workstation I am on. For writing the code I use Microsoft Visual Studio 2008 and MPI examples compile and run great.</div>

<div><br></div><div>I followed the example here for Isend and Irecv <a href="https://computing.llnl.gov/tutorials/mpi/#Non-Blocking_Message_Passing_Routines">https://computing.llnl.gov/tutorials/mpi/#Non-Blocking_Message_Passing_Routines</a></div>

<div><a href="https://computing.llnl.gov/tutorials/mpi/#Non-Blocking_Message_Passing_Routines"></a>For the array decomposition i followed the example mpi_array.c from <a href="https://computing.llnl.gov/tutorials/mpi/exercise.html">https://computing.llnl.gov/tutorials/mpi/exercise.html</a></div>

<div><br></div><div><a href="https://computing.llnl.gov/tutorials/mpi/exercise.html"></a>It would be great if you guys could tell me what I&#39;m doing wrong.</div><div><br></div><div>Cheers,</div><div>Alex </div></div><div>

<br></div>