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

Commit

Permalink
Fixed copy data type mismatch when using double with sdsdot
Browse files Browse the repository at this point in the history
  • Loading branch information
OuadiElfarouki committed Nov 13, 2023
1 parent 05ed6aa commit 5fb556e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/interface/blas1_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,10 @@ typename sb_handle_t::event_t _sdsdot(
increment_t _incx, container_1_t _vy, increment_t _incy, container_2_t _rs,
const typename sb_handle_t::event_t &_dependencies) {
if (!_N) {
using element_t = typename ValueType<container_2_t>::type;
sb_handle.wait(_dependencies);
auto ret = blas::helper::copy_to_device(sb_handle.get_queue(), &sb, _rs, 1);
auto ret = blas::helper::copy_to_device(
sb_handle.get_queue(), reinterpret_cast<element_t *>(&sb), _rs, 1);
sb_handle.wait(ret);
return {ret};
} else {
Expand Down

0 comments on commit 5fb556e

Please sign in to comment.