Re: [OMPI users] General Questions

2016-03-02 Thread Jeff Squyres (jsquyres)
On Mar 1, 2016, at 10:25 PM, dpchoudh . wrote: > > > I don't think the Open MPI TCP BTL will pass the SDP socket type when > creating sockets -- SDP is much lower performance than native verbs/RDMA. > You should use a "native" interface to your RDMA network instead (which one > you use depen

[OMPI users] Sending string causes memory errors

2016-03-02 Thread Florian Lindner
Hello, using OpenMPI 1.10.2 and valgrind 3.11.0 I try to use the code below to send a c++ string. It works fine, but running through valgrind gives a lot of memory errors, invalid read of size... What is going wrong there? Valgrind output, see below. Thanks! Florian // Compile with: mpicxx

Re: [OMPI users] Sending string causes memory errors

2016-03-02 Thread Gilles Gouaillardet
Florian, under the hood, strlen() can use vector instructions, and then read memory above the end of the string. valgrind is extremely picky and does warn about that. iirc, there are some filter options not to issue these warnings, but I forgot the details. can you try to send "Bonjour" instead o

Re: [OMPI users] Sending string causes memory errors

2016-03-02 Thread Florian Lindner
Hello Gilles, Am Mittwoch, 2. März 2016, 23:36:56 CET schrieb Gilles Gouaillardet: > Florian, > > under the hood, strlen() can use vector instructions, and then read memory > above the end of the string. valgrind is extremely picky and does warn > about that. > iirc, there are some filter options

Re: [OMPI users] Sending string causes memory errors

2016-03-02 Thread Jeff Squyres (jsquyres)
There's a bunch of places in OMPI where we don't initialize memory because we know it doesn't matter (e.g., in padding between unaligned struct members), but then that memory is accessed when writing the entire struct down a file descriptor or memcpy'ed elsewhere in memory...etc. It gets even w