diff --git a/examples/spmm/spmm_cuda.cc b/examples/spmm/spmm_cuda.cc index c9555fd44..49d2be025 100644 --- a/examples/spmm/spmm_cuda.cc +++ b/examples/spmm/spmm_cuda.cc @@ -183,7 +183,7 @@ struct DeviceTensor : public ttg::TTValue> /// move constructor DeviceTensor(tensor_type&& x) noexcept : ttvalue_type() - , tensor_type(std::move(x)) + , tensor_type(static_cast(x)) , b(this->size() ? this->data() : nullptr, this->size()) { //std::cout << "DeviceTensor tensor_type move ctor" << std::endl; @@ -237,7 +237,7 @@ struct DeviceTensor : public ttg::TTValue> /// move assignment operator DeviceTensor& operator=(DeviceTensor&& x) noexcept { ttvalue_type::operator=(std::move(x)); - tensor_type::operator=(std::move(x)); + tensor_type::operator=(static_cast(x)); if (this->size() == 0 || this->data() == x.b.host_ptr()){ b = std::move(x.b); } else {