Re: [eigen] Custom memory allocators with eigen

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



On Mon, Mar 15, 2021 at 12:32 PM Rasmus Munk Larsen <rmlarsen@xxxxxxxxxx> wrote:
Have you considered using a more general purpose solution like tcmalloc or jemalloc?

https://github.com/google/tcmalloc
https://github.com/jemalloc/jemalloc

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.

-Edward


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