From bcefdd7c4eff147242ededf040653449c2d573c9 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 19 Aug 2017 12:49:02 -0400 Subject: [PATCH] Align both allocator calls to 2MB --- lib/allocator/AlignedAllocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/allocator/AlignedAllocator.h b/lib/allocator/AlignedAllocator.h index 7fd9496f..39734b53 100644 --- a/lib/allocator/AlignedAllocator.h +++ b/lib/allocator/AlignedAllocator.h @@ -186,9 +186,9 @@ public: pointer allocate(size_type __n, const void* _p= 0) { #ifdef HAVE_MM_MALLOC_H - _Tp * ptr = (_Tp *) _mm_malloc(__n*sizeof(_Tp),128); + _Tp * ptr = (_Tp *) _mm_malloc(__n*sizeof(_Tp),GRID_ALLOC_ALIGN); #else - _Tp * ptr = (_Tp *) memalign(128,__n*sizeof(_Tp)); + _Tp * ptr = (_Tp *) memalign(GRID_ALLOC_ALIGN,__n*sizeof(_Tp)); #endif return ptr; }