Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Directed to Undirected Graph
From: Michael Raymond (mraymond_at_[hidden])
Date: 2012-06-05 13:07:35


   You need to use 2 calls. One option is an Allgather followed by an
Allgatherv.

Allgather() with one integer, which is the number of nodes the rank is
linked to
Allgatherv() with a variable size array of integers where each entry is
a connected to node

On 06/05/2012 08:39 AM, Mudassar Majeed wrote:
>
> Dear people,
> Let say there are N MPI processes. Each MPI process has to communicate
> with some T processes, where T < N. This information is a directed graph
> (and every process knows only about its own). I need to convert it to
> undirected graph, so that each process will inform T other processes
> about it. Every process will update this information. (that may be
> stored in an array of maximum size N). What can be the best way to
> exchange this information among all MPI processes ? MPI_AllGather and
> MPI_AllGatherv do not solve my problem.
>
>
> best regards,
>
>
> -- Mudassar
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

-- 
Michael A. Raymond
SGI MPT Team Leader
(651) 683-3434