Skip to content
Snippets Groups Projects
Commit 32d4e3b2 authored by laurent soulier's avatar laurent soulier
Browse files

[IMPR] renaming copy functions

parent 60b22353
No related branches found
No related tags found
1 merge request!9Refactoring Tensor
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
/// @bug Copy implementation, between different data types even on same backend is /// @bug Copy implementation, between different data types even on same backend is
/// plain wrong: undefined behaviour in violation of the strict-aliasing rule /// plain wrong: undefined behaviour in violation of the strict-aliasing rule
void copy(const Byte_t *src, NbElts_t length) override void copyFromHost(const Byte_t *src, NbElts_t length) override
{ {
std::copy( std::copy(
reinterpret_cast<const T *>(src), reinterpret_cast<const T *>(src),
...@@ -99,7 +99,7 @@ public: ...@@ -99,7 +99,7 @@ public:
{ {
ptr->cloneProperties(*this); ptr->cloneProperties(*this);
NbElts_t n = getNbElts(); NbElts_t n = getNbElts();
ptr->copy(getDataAddress(), n); ptr->copyFromHost(getDataAddress(), n);
} }
return detail::pimpl::ImplPtr_t(ptr); return detail::pimpl::ImplPtr_t(ptr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment