Skip to content

Commit

Permalink
Fix sync call
Browse files Browse the repository at this point in the history
  • Loading branch information
aacostadiaz committed Aug 2, 2023
1 parent 504a6bc commit 57c2913
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/interface/blas1_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,8 @@ typename ValueType<container_t>::type _asum(
auto gpu_res = blas::helper::allocate < is_usm ? helper::AllocType::usm
: helper::AllocType::buffer,
element_t > (static_cast<index_t>(1), sb_handle.get_queue());
blas::internal::_asum(sb_handle, _N, _vx, _incx, gpu_res, _dependencies);
auto asum_event = blas::internal::_asum(sb_handle, _N, _vx, _incx, gpu_res, _dependencies);
sb_handle.wait(asum_event);
auto event =
blas::helper::copy_to_host(sb_handle.get_queue(), gpu_res, res.data(), 1);
sb_handle.wait(event);
Expand Down

0 comments on commit 57c2913

Please sign in to comment.