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

2018-02-14 Thread Gilles Gouaillardet
Christophe, I have no reason to suspect the compiler. By default, the embedded libevent is used. FWIW. homebrew uses libevent 2.1.8, but once again, I have no reason to suspect the embedded library is wrong. My best bet is you first upgrade your operating system, since Maverick is pretty old now

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

2018-02-14 Thread Christophe Petit
Thanks for your message. Actually, if I test ulimit -n, I get : $ulimit -n 65536 that confirms that modifications (from the tutorial) are taken into account. To test the OpenMPI "ring_c.c" code, I get : 1) without "--oversubscribe" flag : $mpirun -np 128 ./ring_c -

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

2018-02-14 Thread Gilles Gouaillardet
Christophe, I can only test this on OS X 10.13.3 High Sierra, and it could differ from Maverick. by default KA15-002:~ gilles$ ulimit -n 256 KA15-002:~ gilles$ ulimit -Hn unlimited but surprisingly, KA15-002:~ gilles$ ulimit -n unlimited -bash: ulimit: open files: cannot modify limit: Operat

Re: [OMPI users] ERR_TRUNCATE with MPI_Pack

2018-02-14 Thread Gilles Gouaillardet
Florian, My bad, I overlooked that. Per the man page, the second parameter of MPI_Unpack() is the input buffer size in *bytes*. In your case, it should be packSize instead of vecSize. Makes sense ? FWIW, I never hesitate to run small tests with mpich (or its derivative). If both implementation

Re: [OMPI users] ERR_TRUNCATE with MPI_Pack

2018-02-14 Thread Florian Lindner
Hi Gilles, Am 14.02.2018 um 11:46 schrieb Gilles Gouaillardet: > Florian, > > You send position=0 MPI_PACKED instead of estimatedPackSize, so it is very > odd you see get_count = 12 > > Can you please double check that part ? https://gist.github.com/floli/310980790d5d76caac0b19a937e2a502 You

Re: [OMPI users] ERR_TRUNCATE with MPI_Pack

2018-02-14 Thread Gilles Gouaillardet
Florian, You send position=0 MPI_PACKED instead of estimatedPackSize, so it is very odd you see get_count = 12 Can you please double check that part ? Also, who returns MPI_ERR_TRUNCATE ? MPI_Recv ? MPI_Unpack ? Cheers, Gilles Florian Lindner wrote: >Hello, > >I have this example code: > >

[OMPI users] ERR_TRUNCATE with MPI_Pack

2018-02-14 Thread Florian Lindner
Hello, I have this example code: #include #include int main(int argc, char *argv[]) { MPI_Init(&argc, &argv); { MPI_Request req1, req2; std::vector vec = {1, 2, 3}; int packSize = sizeof(int) * vec.size(); int position = 0; std::vector packSendBuf(packSize); int vec

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

2018-02-14 Thread Christophe Petit
Hello, Using Open-Mpi 3.0 and following the tutorial on this link , I try to run a MPI code under MacOS 10.9.5 (Mavericks) with a number of process equal to 256 : the MPI code allocates for each proce