From e7d10fc2d2b8d2a0eebc3343f57a0f3bf5a53925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Tue, 23 Jan 2024 11:36:03 +0100 Subject: [PATCH] use hardware path instead of automatic for cache --- offloading-cacher/cache.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offloading-cacher/cache.hpp b/offloading-cacher/cache.hpp index a58bc0e..e683b26 100644 --- a/offloading-cacher/cache.hpp +++ b/offloading-cacher/cache.hpp @@ -455,12 +455,12 @@ inline void dsacache::Cache::SubmitTask(CacheData* task, const int dst_node, con inline dml::handler> dsacache::Cache::ExecuteCopy( const uint8_t* src, uint8_t* dst, const size_t size, const int node ) const { + numa_run_on_node(node); + dml::const_data_view srcv = dml::make_view(src, size); dml::data_view dstv = dml::make_view(dst, size); - numa_run_on_node(node); - - return dml::submit(dml::mem_copy.block_on_fault(), srcv, dstv); + return dml::submit(dml::mem_copy.block_on_fault(), srcv, dstv); } inline void dsacache::Cache::GetCacheNode(uint8_t* src, const size_t size, int* OUT_DST_NODE, int* OUT_SRC_NODE) const {