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 {