Re: [OMPI users] conflict among differenv MPIs

2008-09-21 Thread Shafagh Jafer
I have tried this, but didn't help :-( could any one help please??? --- On Sun, 9/21/08, Brian Harker wrote: From: Brian Harker Subject: Re: [OMPI users] conflict among differenv MPIs To: "Open MPI Users" List-Post: users@lists.open-mpi.org Date: Sunday, September 21, 2008, 6:52 PM Just speci

Re: [OMPI users] conflict among differenv MPIs

2008-09-21 Thread Brian Harker
Just specify where each individual MPI distribution's stuff is on the command line when you compile with mpicc *.c -I$MPICH_HOME/include or mpicc *.c -I$OPENMPI_HOME/include where the "HOME" directories were specified with --prefix= when you installed. Hope this helps. This works for me. Hope th

[OMPI users] conflict among differenv MPIs

2008-09-21 Thread Shafagh Jafer
I have both openmpi and MPICH on my cluster, the problem is that mpi.h of MPICH is in /usr/local/include and I dont have permission to rename or remove it from there. In my source code I am including the mpi.h of openmpi and this works fine, but then mpi.h itself includes mpicxx.h which it again

Re: [OMPI users] Segmentation Fault--libc.so.6(__libc_start_main...

2008-09-21 Thread Shafagh Jafer
Yes I am using openmpi mpicc and mpic++ to compile my code, and I only have openmpi's lib directory in my LD_LIBRARY_PATH. to make sure that I am including the mpi.h of openmpi, i added this line to my source code #include "/opt/openmpi/1.2.7/include/mpi.h"instead of only saying #include "mpi.h

Re: [OMPI users] Segmentation Fault--libc.so.6(__libc_start_main...

2008-09-21 Thread Aurélien Bouteiller
Are you sure that you have matching versions of the MPI library and mpi.h file ? Open MPI and MPICH have different internal types for the opaque MPI objects (such as MPI_Comm). If you have mismatching mpi.h and mpi library, you'll transmit those as integer to the library while it is expecti

Re: [OMPI users] Segmentation Fault--libc.so.6(__libc_start_main...

2008-09-21 Thread Shafagh Jafer
Ok. I noticed that whenever in my code, i use an MPI fucntion that has "OMPI_DECLSPEC"  in front of it in mpi.h , I get this segfault error. Could some one please tell me what is "OMPI_DECLSPEC"?? is it a macro that I need to enable ?!? forexample, in MPICH the function getsize in mpi.h looks l

Re: [OMPI users] Segmentation Fault--libc.so.6(__libc_start_main...

2008-09-21 Thread Shafagh Jafer
My code was working perfect when I had it with MPICH now I have replaced that with OMPI. Could that be the problem?? Do I need to change any part of my source code if I migrate from MPICH-1.2.6 to OpenMPI-1.2.7?? Please let me know. --- On Sat, 9/20/08, Aurélien Bouteiller wrote: From: Aurélie

[OMPI users] Migrating from MPICH-1.2.6 to OpenMPI-1.2.7

2008-09-21 Thread Shafagh Jafer
Hello, I want to know if I need to make any modifications to my source code to replace MPICH-1.2.6 with Openmpi-1.2.7?? I mean are the function interfaces exactly the same in both MPISH and OMPI?? please let me know. Thanks.