Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-31 Thread Jeff Squyres
On Jul 31, 2012, at 4:26 AM, Paweł Jaromin wrote: > Sorry, in the code is big mes, but I`am sure it not effects my > problem. - I tried another ways to solve the problem. I can pretty guarantee you that these two issues will cause you problems. You need to fix them. Specifically: it seems

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-31 Thread Paweł Jaromin
2012/7/30 Jeff Squyres : > On Jul 30, 2012, at 12:48 PM, Paweł Jaromin wrote: > >> make all >> Building file: ../src/snd_0.1.c >> Invoking: GCC C Compiler >> mpicc -I/usr/include/mpi -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP >> -MF"src/snd_0.1.d" -MT"src/snd_0.1.d" -o

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread Jeff Squyres
On Jul 30, 2012, at 12:48 PM, Paweł Jaromin wrote: > make all > Building file: ../src/snd_0.1.c > Invoking: GCC C Compiler > mpicc -I/usr/include/mpi -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP > -MF"src/snd_0.1.d" -MT"src/snd_0.1.d" -o "src/snd_0.1.o" > "../src/snd_0.1.c" > ../src/snd_0.1.c:24:

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread Paweł Jaromin
normal MPI compiling: Build of configuration Debug for project snd_0.1 make all Building file: ../src/snd_0.1.c Invoking: GCC C Compiler mpicc -I/usr/include/mpi -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/snd_0.1.d" -MT"src/snd_0.1.d" -o "src/snd_0.1.o" "../src/snd_0.1.c"

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread TERRY DONTJE
Please show me how you are compiling the program under gcc and mpicc. Plus do a "mpicc --showme". --td On 7/30/2012 8:33 AM, Paweł Jaromin wrote: This situation is also strange for me, I spend 2 days to find a bug :(. Unfortunately I am not a professional C/C++ programmer, but I have to

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread TERRY DONTJE
On 7/30/2012 6:11 AM, Paweł Jaromin wrote: Hello Thanks for fast answer, but the problem looks a little different. Of course, I use this code only for master node (rank 0), because only this node has an access to file. As You can see i use "if" clause to check sndFile for NULL: if (sndFile

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread Paweł Jaromin
Hello Thanks for fast answer, but the problem looks a little different. Of course, I use this code only for master node (rank 0), because only this node has an access to file. As You can see i use "if" clause to check sndFile for NULL: if (sndFile == NULL) and it returns not NULL value, so

Re: [OMPI users] sndlib problem by mpicc compiler

2012-07-30 Thread TERRY DONTJE
I am not sure I am understanding the problem correctly so let me describe it back to you with a couple clarifications. So your program using sf_open compiles successfully when using gcc and mpicc. However, when you run the executable compiled using mpicc sndFile is null? If the above is

[OMPI users] sndlib problem by mpicc compiler

2012-07-28 Thread Paweł Jaromin
Hello all Because I try make a program to parallel procesing sound files, I use libsndfile library to load and write wav files. Sytuation is strange, because when I compile the program by gcc is good (no parallel), but if I do it by mpicc is a problem with sndFile variable. // Open sound file