This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with MPI call via a subroutine call


The original code contains:
      call MPI_RECV(k(1),1,MPI_INTEGER,(cpuID-1),57, ! if receive I, it works
     &              MPI_COMM_WORLD,request,error)

which is wrong, as the next-to-last argument to MPI_RECV must be an array 
STATUS(MPI_STATUS_SIZE)  (per MPI 1.1 docs), and not a simple integer REQUEST.
Given that my MPICH build says MPI_STATUS_SIZE=4, it's an out-of-bounds
access problem  in a buggy program

Hope this helps
Salvatore



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]