[OMPI users] Begginers question: why does this program hangs?

2008-03-17 Thread Giovani Faccin
Hi there! I'm learning MPI, and got really puzzled... Please take a look at this very short code: #include #include "mpicxx.h" using namespace std; int main(int argc, char *argv[]) { MPI::Init(); for (unsigned long t = 0; t < 1000; t++) { //If we are process 0:

Re: [OMPI users] Begginers question: why does this program hangs?

2008-03-18 Thread Giovani Faccin
eans that your processes are caught in a busy wait. You could try to set mpi_yield_when_idle: > gentryx@hex ~ $ cat .openmpi/mca-params.conf > mpi_yield_when_idle=1 But I don't think this should be necessary. HTH -Andreas On 21:35 Mon 17 Mar , Giovani Faccin wrote: > Hi there! &g

Re: [OMPI users] SIGSEGV error.

2008-03-18 Thread Giovani Faccin
Hey Balaji I'm new at it too, but might be able to help you a bit. A sigsegv error occurs usually when you try to access something in memory that's not actually there. Like using a pointer that points to nothing. In my short experience with MPI so far, I got this kind of message when I made so

Re: [OMPI users] Begginers question: why does this program

2008-03-18 Thread Giovani Faccin
Hi Mark Compiler and flags: sys-devel/gcc-4.1.2 USE="doc* fortran gtk mudflap nls (-altivec) -bootstrap -build -d -gcj (-hardened) -ip28 -ip32r10k -libffi% (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" Network stuff: sonja gfaccin # ifconfig loLin

Re: [OMPI users] Begginers question: why does this program

2008-03-18 Thread Giovani Faccin
Yep, setting the card manually did not solve it. I'm compiling the pre-release version now. Let's see if it works. Giovani Giovani Faccin escreveu: Hi Mark Compiler and flags: sys-devel/gcc-4.1.2 USE="doc* fortran gtk mudflap nls (-altivec) -bootstrap -build -d -gcj (-

Re: [OMPI users] Begginers question: why does this program

2008-03-18 Thread Giovani Faccin
libopen-pal libopen-pal: /usr/local/lib/libopen-pal.so /usr/local/lib/libopen-pal.la So the library exists. How can I make mpiCC know it's location? Thanks! Giovani Giovani Faccin escreveu: Yep, setting the card manually did not solve it. I'm compiling the pre-release version now. Le