Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] "self scheduled" work & mpi receive???
From: Lewis, Ambrose J. (AMBROSE.J.LEWIS_at_[hidden])
Date: 2010-09-23 15:17:26


That's a great suggestion...Thanks!
amb

-----Original Message-----
From: users-bounces_at_[hidden] on behalf of Bowen Zhou
Sent: Thu 9/23/2010 1:18 PM
To: Open MPI Users
Subject: Re: [OMPI users] "self scheduled" work & mpi receive???
 

> Hi All:
>
> I've written an openmpi program that "self schedules" the work.
>
> The master task is in a loop chunking up an input stream and handing off
> jobs to worker tasks. At first the master gives the next job to the
> next highest rank. After all ranks have their first job, the master
> waits via an MPI receive call for the next free worker. The master
> parses out the rank from the MPI receive and sends the next job to this
> node. The jobs aren't all identical, so they run for slightly different
> durations based on the input data.
>
>
>
> When I plot a histogram of the number of jobs each worker performed, the
> lower mpi ranks are doing much more work than the higher ranks. For
> example, in a 120 process run, rank 1 did 32 jobs while rank 119 only
> did 2. My guess is that openmpi returns the lowest rank from the MPI
> Recv when I've got MPI_ANY_SOURCE set and multiple sends have happened
> since the last call.
>
>
>
> Is there a different Recv call to make that will spread out the data better?
>
>
How about using MPI_Irecv? Let the master issue an MPI_Irecv for each
worker and call MPI_Test to get the list of idle workers, then choose
one from the idle list by some randomization?

>
> THANXS!
>
> amb
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users