Re: [OMPI users] Incorrect function call in simple C program

2016-05-16 Thread Thomas Jahns
On May 10, 2016, at 12:26 , Gilles Gouaillardet wrote: except if you #include the libc header in your app, *and* your send function has a different prototype, I do not see how clang can issue a warning (except of course if clang "knows" all the libc subroutines ...) not sure if that helps

Re: [OMPI users] Incorrect function call in simple C program

2016-05-10 Thread Gilles Gouaillardet
except if you #include the libc header in your app, *and* your send function has a different prototype, I do not see how clang can issue a warning (except of course if clang "knows" all the libc subroutines ...) Cheers, Gilles On Tuesday, May 10, 2016, Devon Hollowood

Re: [OMPI users] Incorrect function call in simple C program

2016-05-10 Thread Devon Hollowood
That worked perfectly. Thank you. I'm surprised that clang didn't emit a warning about this! -Devon On Mon, May 9, 2016 at 3:42 PM, Gilles Gouaillardet < gilles.gouaillar...@gmail.com> wrote: > Devon, > > send() is a libc function that is used internally by Open MPI, and it uses > your user

Re: [OMPI users] Incorrect function call in simple C program

2016-05-09 Thread Gilles Gouaillardet
Devon, send() is a libc function that is used internally by Open MPI, and it uses your user function instead of the libc ne. simply rename your function mysend() or something else that is not used by libc, and your issue will likely be fixed Cheers, Gilles On Tuesday, May 10, 2016, Devon

[OMPI users] Incorrect function call in simple C program

2016-05-09 Thread Devon Hollowood
Hello, I am having trouble understanding why I am getting an error when running the program produced by the attached C file. In this file, there are three short functions: send(), bounce() and main(). send() and bounce() both use MPI_Send() and MPI_Recv(), but critically, neither one is called