aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/workloads/ClGatherWorkload.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-12-02 11:28:58 +0000
committerSadik Armagan <sadik.armagan@arm.com>2020-12-02 11:29:35 +0000
commite9444751017fe108ce80fd5c270d04fffeb14e1e (patch)
tree29601fdf9017a2dbce71983b995709c24e6c773c /src/backends/cl/workloads/ClGatherWorkload.cpp
parentbbbefecd34a9420bcb003dd230402c55ee5150d5 (diff)
downloadarmnn-e9444751017fe108ce80fd5c270d04fffeb14e1e.tar.gz
IVGCVSW-5482 'Add a ClCompileContext parameter to each ClWorkload Constructor'
* Injected CLCompileContext object to each CL workload. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I4837dbd3d5b56cf743b3b89c944e3cdf8b11a42a
Diffstat (limited to 'src/backends/cl/workloads/ClGatherWorkload.cpp')
-rw-r--r--src/backends/cl/workloads/ClGatherWorkload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backends/cl/workloads/ClGatherWorkload.cpp b/src/backends/cl/workloads/ClGatherWorkload.cpp
index c76b9c7a17..98dfe7bc81 100644
--- a/src/backends/cl/workloads/ClGatherWorkload.cpp
+++ b/src/backends/cl/workloads/ClGatherWorkload.cpp
@@ -27,7 +27,8 @@ arm_compute::Status ClGatherWorkloadValidate(const TensorInfo& input,
}
ClGatherWorkload::ClGatherWorkload(const GatherQueueDescriptor& descriptor,
- const WorkloadInfo& info)
+ const WorkloadInfo& info,
+ const arm_compute::CLCompileContext& clCompileContext)
: BaseWorkload<GatherQueueDescriptor>(descriptor, info)
{
m_Data.ValidateInputsOutputs("ClGatherWorkload", 1, 1);
@@ -38,7 +39,7 @@ ClGatherWorkload::ClGatherWorkload(const GatherQueueDescriptor& descriptor,
int aclAxis = ComputeAclAxis(descriptor.m_Parameters.m_Axis, info.m_InputTensorInfos[0]);
- m_Layer.configure(&input, &indices, &output, aclAxis);
+ m_Layer.configure(clCompileContext, &input, &indices, &output, aclAxis);
};
void ClGatherWorkload::Execute() const