NEST
2.6.0,not_revisioned_source_dir@0
|
Functions | |
__attribute__ ((aligned(64))) PaddedPMA poormansallocpool[MAX_THREAD] | |
On K computer threadprivate does not yet work properly for objects, only for PODs. More... | |
Variables | |
PoorMansAllocator | poormansallocpool |
__attribute__ | ( | (aligned(64)) | ) |
On K computer threadprivate does not yet work properly for objects, only for PODs.
Thus we allocate a C-style array of allocators on K, aligned to 64 byte boundaries. Each element (allocator) is padded to 64 bytes, so it fills an entire cache line in order to avoid false sharing by accesses of different threads to their respective allocator copies.
PoorMansAllocator poormansallocpool |
Referenced by allocate().