From 5fb556edaed8e7d3a1c4fbf7695890ed35de5e9b Mon Sep 17 00:00:00 2001 From: Ouadie EL FAROUKI Date: Mon, 13 Nov 2023 13:27:25 +0000 Subject: [PATCH] Fixed copy data type mismatch when using double with sdsdot --- src/interface/blas1_interface.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/interface/blas1_interface.hpp b/src/interface/blas1_interface.hpp index bb1592a2a..f0acf8496 100644 --- a/src/interface/blas1_interface.hpp +++ b/src/interface/blas1_interface.hpp @@ -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::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(&sb), _rs, 1); sb_handle.wait(ret); return {ret}; } else {