Discussion:
the invalid rank problem
(too old to reply)
Kamran Hameed
2008-09-16 05:59:40 UTC
Permalink
folks i am trying to use mpiJava's send() ands recv() which are infact
calling the native MPI_Send() and MPI_Recv()... Every method of
mpiJava is native and finds its implementation in C... but this is
what i get


getWorld is returning1888464320
Rank is 0
getWorld is returning1888464320
Rank is 0


*** An error occurred in MPI_Recv
*** on communicator MPI_COMM_WORLD
*** MPI_ERR_RANK: invalid rank
*** MPI_ERRORS_ARE_FATAL (goodbye)

*** An error occurred in MPI_Recv
*** on communicator MPI_COMM_WORLD
*** MPI_ERR_RANK: invalid rank
*** MPI_ERRORS_ARE_FATAL (goodbye)

i think that communicator that i am printing in getWorld() is fine ???
is it??? or is there a problem with Rank() that every time it is
returning 0...?? how can i solve it....

any help would be appreciated
Kamran Hameed
2008-09-17 04:53:29 UTC
Permalink
Post by Kamran Hameed
folks i am trying to use mpiJava's send() ands recv() which are infact
calling the native MPI_Send() and MPI_Recv()... Every method of
mpiJava is native and finds its implementation in C... but this is
what i get
getWorld is returning1888464320
Rank is 0
getWorld is returning1888464320
Rank is 0
 *** An error occurred in MPI_Recv
*** on communicator MPI_COMM_WORLD
*** MPI_ERR_RANK: invalid rank
*** MPI_ERRORS_ARE_FATAL (goodbye)
*** An error occurred in MPI_Recv
 *** on communicator MPI_COMM_WORLD
*** MPI_ERR_RANK: invalid rank
 *** MPI_ERRORS_ARE_FATAL (goodbye)
i think that communicator that i am printing in getWorld() is fine ???
is it??? or is there a problem with Rank() that every time it is
returning 0...?? how can i solve it....
any help would be appreciated
Just tried one more thing... i have a native method in java getWorld()
that returns the MPI_COMM_WORLD from JNI code. In the output i posted
above, that communicator has same values but infact for both
processes, the value of communicator is different... isnt it should be
same???? any ideas
Georg Bisseling
2008-09-17 14:16:23 UTC
Permalink
On Wed, 17 Sep 2008 06:53:29 +0200, Kamran Hameed <***@gmail.com> wrote:

If you post the source code of a small example program
then maybe somebody knowing the MPI-Java-Binding that
you are using could help you.
g***@gmail.com
2008-09-19 21:21:32 UTC
Permalink
People, thank you all!!!
./configure --enable-romio --without-mpe --with-pm=mpd --with-device=ch3:sock --enable-threads=multiple --with-thread-package=posix
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
rc = pthread_create(&threads[t], &attr, threadfunc, (void *)
listParam);

It works!!!

I hope not have more problems and I hope that the library is really
stable for this type of situation.

If I have any other problem I turn to send messages.
Thank you for helping!!!!

Loading...