aboutsummaryrefslogtreecommitdiff
path: root/src/backends/MemCopyWorkload.cpp
diff options
context:
space:
mode:
authorAron Virginas-Tar <Aron.Virginas-Tar@arm.com>2018-11-01 16:15:57 +0000
committerAron Virginas-Tar <Aron.Virginas-Tar@arm.com>2018-11-02 14:49:21 +0000
commitc9cc80455ff29fd2c8622c9487ec9c57ade6ea30 (patch)
tree41b1491312fe6082b39d5d37ffa0dcf0ab0f2817 /src/backends/MemCopyWorkload.cpp
parent207ef9a6b8b3ea0afe9a095639f67b5dedd095d7 (diff)
downloadarmnn-c9cc80455ff29fd2c8622c9487ec9c57ade6ea30.tar.gz
IVGCVSW-1946: Remove armnn/src from the include paths
Change-Id: I663a0a0fccb43ee960ec070121a59df9db0bb04e
Diffstat (limited to 'src/backends/MemCopyWorkload.cpp')
-rw-r--r--src/backends/MemCopyWorkload.cpp61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/backends/MemCopyWorkload.cpp b/src/backends/MemCopyWorkload.cpp
deleted file mode 100644
index 29f629ae50..0000000000
--- a/src/backends/MemCopyWorkload.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-//
-// Copyright © 2017 Arm Ltd. All rights reserved.
-// SPDX-License-Identifier: MIT
-//
-#include "MemCopyWorkload.hpp"
-#include "CpuTensorHandle.hpp"
-#include <TypeUtils.hpp>
-
-#include <cstring>
-#include <boost/cast.hpp>
-
-namespace armnn
-{
-
-namespace
-{
-
-template <typename SrcTensorHandleType, typename DstTensorHandleType>
-void GatherTensorHandlePairs(const MemCopyQueueDescriptor& descriptor,
- std::vector<std::pair<SrcTensorHandleType*, DstTensorHandleType*>>& tensorHandlePairs)
-{
- const unsigned int numInputs = static_cast<unsigned int>(descriptor.m_Inputs.size());
- tensorHandlePairs.reserve(numInputs);
-
- for (unsigned int i = 0; i < numInputs; ++i)
- {
- SrcTensorHandleType* const srcTensorHandle = boost::polymorphic_downcast<SrcTensorHandleType*>(
- descriptor.m_Inputs[i]);
- DstTensorHandleType* const dstTensorHandle = boost::polymorphic_downcast<DstTensorHandleType*>(
- descriptor.m_Outputs[i]);
-
- tensorHandlePairs.emplace_back(srcTensorHandle, dstTensorHandle);
- }
-}
-
-} //namespace
-
-
-CopyMemGenericWorkload::CopyMemGenericWorkload(const MemCopyQueueDescriptor& descriptor,
- const WorkloadInfo& info)
- : BaseWorkload<MemCopyQueueDescriptor>(descriptor, info)
-{
- GatherTensorHandlePairs(descriptor, m_TensorHandlePairs);
-}
-
-void CopyMemGenericWorkload::Execute() const
-{
- ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "CopyMemGeneric_Execute");
-
- auto copyFunc = [](void* dst, const void* src, size_t size)
- {
- memcpy(dst, src, size);
- };
-
- for (const auto& pair : m_TensorHandlePairs)
- {
- CopyTensorContentsGeneric(pair.first, pair.second, copyFunc);
- }
-}
-
-} //namespace armnn