Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Removed unecessary sync
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Oct 19, 2023
1 parent 965a1f2 commit ffa9d6c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/interface/blas1_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<increment_t>(1),
static_cast<index_t>(1));
Expand Down

0 comments on commit ffa9d6c

Please sign in to comment.