Re: [eigen] Custom memory allocators with eigen

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]



On Wed, Mar 17, 2021 at 4:10 AM Alberto Luaces wrote:
>
> > FWIW, on a side note, jemalloc required defining
> > EIGEN_MALLOC_ALREADY_ALIGNED to 0 the last time I tried it because its
> > allocator didn't guarantee always 16-byte aligned pointers. For really
> > small allocations, it can return 8-byte aligned pointers.
>
> Thanks for pointing that!.  In the case the wrong alignment were used,
> would I expect to have a SIGSEV (or similar) or just bogus results?
 
As far as I recall, I ran into crashes but it wasn't obvious that it was an alignment issue so it's possible that bogus results are possible. Having said that, you'd need to have very small matrices to run into this.

-Edward


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/