LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: chellapp_at_[hidden]
Date: 2003-10-28 10:06:40


I am new to mpi programming.I want to parallelize my Genetic
    Algorithm program.
    The pseudocode for my program is as follows:
     Master:
      makes chromosomes
      for(i=1;i<num_generations;i++)
      {
        sends chromosomes to servant for evaluation(MPI_Scatter)
        Gathers the information about fitness(MPI_Gather)
        analyses the fitness of chromosomes.
        makes new generation of chromosomes accordingly.
     }
     Servant:
      Evaluates chromosomes.
     When I put MPI_scatter and gather in the loop, I get error
message
    like this
     MPI_Recv: process in local group is dead (rank 1, MPI_COMM_WORLD).
     I am wondering how to rectify this in mpi.I will highly
appreciate
    your help and any suggestions in this regard.
    Thanking you.