Added AlignedAllocator class
commit6302f1a0bd2840ed609feb24900a756db4d53423
authorErik Lindahl <erik@kth.se>
Sat, 3 Oct 2015 14:55:43 +0000 (3 16:55 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Fri, 23 Oct 2015 01:14:41 +0000 (23 03:14 +0200)
tree5a4762d85d470c237f4a82d3c45a9724f85f1a04
parente86461d99397a4cbb5190ae8b1e2a944338444ba
Added AlignedAllocator class

Intended for use with standard library containers so they
can hold SIMD data and still guarantee aligned load/store.
Memory will currently be aligned to 128 bytes, and padded
with the same amount after the area to avoid false cache
sharing.

Change-Id: I9d5b119d17f179793bb5252fad10e6dd89ef60c7
CMakeLists.txt
cmake/TestMMMalloc.cpp [new file with mode: 0644]
cmake/gmxTestMMMalloc.cmake [new file with mode: 0644]
src/config.h.cmakein
src/gromacs/utility/alignedallocator.cpp [new file with mode: 0644]
src/gromacs/utility/alignedallocator.h [new file with mode: 0644]
src/gromacs/utility/smalloc.cpp
src/gromacs/utility/tests/CMakeLists.txt
src/gromacs/utility/tests/alignedallocator.cpp [new file with mode: 0644]