Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

undefined sent

2 views
Skip to first unread message

mathieu

unread,
Jun 16, 2011, 4:10:34 AM6/16/11
to mds...@irb.hr
I would like to do some combinatorics computation using mpi and I have
a problem.
In mpi, when one uses MPI_SEND, MPI_RECV and friends, we have to know
exactly when
a transfer has to be done so as to be able to do it at all.

What I would like is to have a number N of computational nodes and 1
additional node
that checks for isomorphism. The problem is that such checks for
isomorphism could happen at any given time, it is almost impossible to
predict when such operations are done.

So, what I would like is some functions that do:
MPI_SEND_CALL(TheSpecialNode, MPI_COMM_WORLD)
for the sending side. I.e. the calling side would call the special
node and wait
for it to be available

and
MPI_RECV_CALL(TheCallingNode, MPI_COMM_WORLD)
for the receiving side. Where it would get to know who was calling
him.

Then I would do something like
WHILE(1)
mpi_recv_call(.... , ....)
.
.
normal mpi operations.
.
.
END DO
Is there any possibility of achieving such kind of operation in mpi?
If not what would you recommend as parallel paradigm? The target
language
is C/C++.

Thanks,

Mathieu

blmblm.m...@gmail.com

unread,
Jun 17, 2011, 1:09:24 PM6/17/11
to
In article <7e2af966-009b-4ff3...@l18g2000yql.googlegroups.com>,

Maybe there's something I'm not understanding here, but it seems
to me like your pseudocode above can easily be turned into real
C-plus-MPI; you just need for the "special" node to do its receives
with a source of MPI_ANY_SOURCE. Presumably you'll then want to
know the rank of the sending process, but you can get that from
the status variable (status_variable.MPI_SOURCE). On the other side,
the sending node can wait for the special node to be available by
doing a receive. ?

--
B. L. Massingill
ObDisclaimer: I don't speak for my employers; they return the favor.

blmblm.m...@gmail.com

unread,
Jun 20, 2011, 3:12:50 PM6/20/11
to
In article <961g24...@mid.individual.net>,

[ snip problem and reply ]

It would be nice to know whether my comments helped the OP, or in
fact whether he even read them. Just sayin'.

0 new messages