|
|
@ -37,12 +37,12 @@ int main(int argc, char **argv) { |
|
|
|
}; |
|
|
|
|
|
|
|
auto copy_policy = [](const int numa_dst_node, const int numa_src_node) { |
|
|
|
return std::vector{ numa_src_node }; |
|
|
|
return std::vector{ numa_src_node, numa_dst_node }; |
|
|
|
}; |
|
|
|
|
|
|
|
cache.Init(cache_policy,copy_policy); |
|
|
|
|
|
|
|
static constexpr size_t data_size = 8192; |
|
|
|
static constexpr size_t data_size = 1024 * 1024; |
|
|
|
double* data = GetRandomArray(data_size); |
|
|
|
|
|
|
|
std::unique_ptr<offcache::CacheData> data_cache = cache.Access(reinterpret_cast<uint8_t *>(data), data_size * sizeof(double), offcache::ExecutionPolicy::Relaxed); |
|
|
|