Re: [OMPI users] MacOS - Running MPI code with 256 procs - “[warn] select: Invalid argument” message

2018-02-19 Thread Gilles Gouaillardet
Christophe, could you try the hello_c.c and ring_c.c from the examples directory ? If it still does not work, then could you give a try to Open MPI from homebrew ? and if that fixes the issue, can you please post your configure command line ? Cheers, Gilles On 2/17/2018 7:08 AM,

[OMPI users] Help debugging invalid read

2018-02-19 Thread Florian Lindner
Hello, I am having problems understanding an error valgrind gives me. I tried to bog down the program as much as possible. The original program as well as the test example both work fine, but when I link the created library to another application I get segfaults. I think that this piece of code

Re: [OMPI users] Help debugging invalid read

2018-02-19 Thread Florian Lindner
Ok, I think I have found the problem During std::vector::push_back or emplace_back a realloc happens and thus memory locations that I gave to MPI_Isend become invalid. My loop now reads: std::vector eventSendBuf(eventsSize); // Buffer to hold the MPI_EventData object for (int i = 0; i <