#include <array>
#include <cstdint>
#include <new>
#include <vector>
#include "core/util/root.h"
Go to the source code of this file.
◆ hardware_constructive_interference_size
constexpr std::size_t hardware_constructive_interference_size = 64u |
|
constexpr |
This is BioDynaMo's cacheline size. If you system has a different cacheline size, consider changing the value accordingly. In particular, this value is used to align the data in the SharedData class to avoid false sharing between threads. From C++17 on, the standard library provides hardware_constructive_interference_size and hardware_destructive_interference_size, which can be used instead of this constant. If the standard library does not provide these constants, the default value for x86-64 is used.
Definition at line 40 of file shared_data.h.
◆ hardware_destructive_interference_size
constexpr std::size_t hardware_destructive_interference_size = 64u |
|
constexpr |