blob: ca1db389dc01d6dc4055bca4ecb35e9dbc4b03a8 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
Matthew Bentham14e46692018-09-20 15:35:30 +01008#include "backends/Workload.hpp"
9
10#include <arm_compute/runtime/CL/CLFunctions.h>
telsoa014fcda012018-03-09 14:13:49 +000011
12namespace armnn
13{
telsoa01c577f2c2018-08-31 09:22:23 +010014template <armnn::DataType... DataTypes>
15class ClBaseConstantWorkload : public TypedWorkload<ConstantQueueDescriptor, DataTypes...>
telsoa014fcda012018-03-09 14:13:49 +000016{
17public:
18 ClBaseConstantWorkload(const ConstantQueueDescriptor& descriptor, const WorkloadInfo& info)
telsoa01c577f2c2018-08-31 09:22:23 +010019 : TypedWorkload<ConstantQueueDescriptor, DataTypes...>(descriptor, info)
telsoa014fcda012018-03-09 14:13:49 +000020 , m_RanOnce(false)
21 {
22 }
23
24 void Execute() const override;
25
26private:
27 mutable bool m_RanOnce;
28};
29
Matthew Bentham14e46692018-09-20 15:35:30 +010030} //namespace armnn