diff options
author | Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> | 2018-10-19 16:46:15 +0100 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2018-10-22 16:57:54 +0100 |
commit | a8e06ed540a934f966679e1ef1cf7acf295211b3 (patch) | |
tree | 247035d1bce6ddb8543081a88294a85e34968035 /src/backends/cl/workloads/ClAdditionWorkload.cpp | |
parent | f0b4845c1c6f24f59d4c88473b852cf69a3c7ae9 (diff) | |
download | armnn-a8e06ed540a934f966679e1ef1cf7acf295211b3.tar.gz |
IVGCVSW-1955: Unify backend exceptions (wrap cl::Error)
* Added wrapper function around arm_compute::IFunction::run() that catches
cl::Error and wraps it into an armnn::RuntimeException
* Added MakeWorkload template inside ClWorkloadFactory that catches
cl::Error and wraps it into an armnn::RuntimeException
* Replaced cl::Error with armnn::RuntimeException in catch statements inside
LoadedNetwork
Change-Id: I2340f41ae02b8db1d7ef5157824a50e7410854e3
Diffstat (limited to 'src/backends/cl/workloads/ClAdditionWorkload.cpp')
-rw-r--r-- | src/backends/cl/workloads/ClAdditionWorkload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backends/cl/workloads/ClAdditionWorkload.cpp b/src/backends/cl/workloads/ClAdditionWorkload.cpp index c9ac958402..6ec207a956 100644 --- a/src/backends/cl/workloads/ClAdditionWorkload.cpp +++ b/src/backends/cl/workloads/ClAdditionWorkload.cpp @@ -32,7 +32,7 @@ ClAdditionWorkload::ClAdditionWorkload(const AdditionQueueDescriptor& descriptor void ClAdditionWorkload::Execute() const { ARMNN_SCOPED_PROFILING_EVENT_CL("ClAdditionWorkload_Execute"); - m_Layer.run(); + RunClFunction(m_Layer, CHECK_LOCATION()); } arm_compute::Status ClAdditionValidate(const TensorInfo& input0, |