From ffa9d6c27098d1e46d3b41585ab7ff532af43028 Mon Sep 17 00:00:00 2001 From: Ouadie EL FAROUKI Date: Thu, 19 Oct 2023 19:20:03 +0100 Subject: [PATCH] Removed unecessary sync --- src/interface/blas1_interface.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/interface/blas1_interface.hpp b/src/interface/blas1_interface.hpp index 3387cb772..a98e7b3c7 100644 --- a/src/interface/blas1_interface.hpp +++ b/src/interface/blas1_interface.hpp @@ -153,12 +153,8 @@ typename sb_handle_t::event_t _sdsdot( const typename sb_handle_t::event_t &_dependencies) { if (!_N) { sb_handle.wait(_dependencies); - auto copy_sb = - blas::helper::copy_to_device(sb_handle.get_queue(), &sb, _rs, 1); - sb_handle.wait(copy_sb); - auto ret = concatenate_vectors(_dependencies, - typename sb_handle_t::event_t{copy_sb}); - return ret; + auto ret = blas::helper::copy_to_device(sb_handle.get_queue(), &sb, _rs, 1); + return {ret}; } else { auto rs = make_vector_view(_rs, static_cast(1), static_cast(1));