Problems occur when submit MPI jobs, it works ok using single processor. Cheers RRS feed

  • Question


    Hi, everyone:

    I am trying to use MSHPC to run my case, the compliling is ok , running is on one single processor is ok. but when I use more than one processors using the command line 'mpiexec -np 2 hello.exe' , the error message is as follows:
    job aborted:
    rank: node: exit code: message

    0: sb-node001: fatal error: Fatal error in MPI_Send: Invalid rank, error stack:

    MPI_Send(172): MPI_Send(buf=0x0000000001A4F3E0, count=1, MPI_INTEGER, dest=321388545, tag=12, MPI_COMM_WORLD) failed

    MPI_Send(97).: Invalid rank has value 321388545 but must be nonnegative and less than 2

    1: sb-node001: terminated

    ---- error analysis -----

    0: mpi has detected a fatal error and aborted hello.exe run on sb-node001

    ---- error analysis -----

    I do not think that is the problem in the configuration of VS2005 with MSMPI.  The platform setting is active X64.
    I really do not know why.  Does somebody help me to solve this problem or just give me some hints.

    May thanks


    Wednesday, October 29, 2008 11:54 AM


  • Looks like your destination parameter is messed up.

    int MPI_Send( void *buf, int count, MPI_Datatype datatype, int dest, 
    int tag, MPI_Comm comm )
    It should be 0 or 1 for you example.
    Thursday, October 30, 2008 3:01 PM

All replies