PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Building MVAPICH2 with PGI 2010
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue Jul 27, 2010 11:37 am    Post subject: Reply with quote

Hi,

In hello.c, MPI_Init should be called in one of following examples.

int main(int argc, char* argv[]) {
int rank;
int size;

MPI_Init(&argc, &argv);

OR

int main( int argc, char ***argv )
{
int rank;
int size;

MPI_Init( &argc, argv );


Failure probably comes from passing 0 instead of address of argc.

Hongyon
Back to top
View user's profile
TheMatt



Joined: 06 Jul 2009
Posts: 315
Location: Greenbelt, MD

PostPosted: Tue Jul 27, 2010 11:45 am    Post subject: Reply with quote

Hadn't noticed that. Yet, fixing it does not seem to help:
Code:
> cat hellow.c
#include <stdio.h>
#include "mpi.h"

int main( int argc, char *argv[] )
{
    int rank;
    int size;
   
    MPI_Init(&argc, &argv);
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    MPI_Comm_size(MPI_COMM_WORLD, &size);
    printf( "Hello world from process %d of %d\n", rank, size );
    MPI_Finalize();
    return 0;
}
> ~/mvapich2/bin/mpicc -o hellow hellow.c
> ~/mvapich2/bin/mpirun_rsh -np 2 -hostfile host_file_name ./hellow
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
MPI process (rank: 1) terminated unexpectedly on hostname
Exit code -5 signaled from hostname

I did also try the other version with no change.

Matt

NB: I have also checked to make sure the MVAPICH2 lib directory is first in LD_LIBRARY_PATH. I saw that could be an issue, but no joy.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue Jul 27, 2010 1:04 pm    Post subject: Reply with quote

What is your OS? Please try with ch3:sock as it says nemesis is a work in progress.

Hongyon
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Tue Jul 27, 2010 1:33 pm    Post subject: Reply with quote

Can you also try a full path to mpirun_rsh instead of ~/.../mpirun_rsh?
It could be a bug in mpirun_rsh.

Hongyon
Back to top
View user's profile
TheMatt



Joined: 06 Jul 2009
Posts: 315
Location: Greenbelt, MD

PostPosted: Wed Jul 28, 2010 5:53 am    Post subject: Reply with quote

First, I'm running on RHEL 5.5. Second, I recompiled mvapich2 from bare sources using device ch3:sock. To wit:
Code:
> ls -l /home/username/mvapich2
lrwxrwxrwx 1 username users 13 Jul 28 08:45 /home/username/mvapich2 -> mvapich2-sock/
> /home/username/mvapich2/bin/mpirun_rsh -np 2 -hostfile host_file_name /home/username/MPIExamples/hellow
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
[cli_0]: [cli_1]: aborting job:
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
aborting job:
Fatal error in MPI_Init: Invalid buffer pointer, error stack:
MPIR_Init_thread(411): Initialization failed
(unknown)(): Invalid buffer pointer
MPI process (rank: 0) terminated unexpectedly on hostname
Exit code -5 signaled from hostname
where username and hostname have been munged. Even if I avoid the symlink and use
Code:
/home/username/mvapich2-sock/bin/mpirun_rsh
I still get this error.

Although, weirdly, with ch3:sock there seems to be twice as many errors as with ch3:nemesis. That is different; not good, but different.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation All times are GMT - 7 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group