From 1beb0965cd6b286f9722452c4b77dff5fbe07d1b Mon Sep 17 00:00:00 2001 From: Ouadie EL FAROUKI Date: Fri, 20 Oct 2023 11:25:47 +0100 Subject: [PATCH] Added sync after copy sdsdot --- src/interface/blas1_interface.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interface/blas1_interface.hpp b/src/interface/blas1_interface.hpp index a98e7b3c7..bb1592a2a 100644 --- a/src/interface/blas1_interface.hpp +++ b/src/interface/blas1_interface.hpp @@ -154,6 +154,7 @@ typename sb_handle_t::event_t _sdsdot( if (!_N) { sb_handle.wait(_dependencies); auto ret = blas::helper::copy_to_device(sb_handle.get_queue(), &sb, _rs, 1); + sb_handle.wait(ret); return {ret}; } else { auto rs = make_vector_view(_rs, static_cast(1),