aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-06 14:47:59 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-06 17:48:26 +0000
commit4632e5e44e9a78b15884d0947007bb030fde0aea (patch)
tree2993a95123b098f7b4ed1545e66781def5bd0b24 /arm_compute
parenta69a88b0b69c4c4018562afcfd560ae94412ec99 (diff)
downloadComputeLibrary-4632e5e44e9a78b15884d0947007bb030fde0aea.tar.gz
COMPMID-1920: Failure exit order destruction when CLTuner enabled.
Creates a profiling queue in every tuning iteration as it gives better control of the lifetime of the opencl objects. Change-Id: Id8629cc06086877b088c787cbb5f238c0979b6d9 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/631 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute')
-rw-r--r--arm_compute/runtime/CL/CLTuner.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/arm_compute/runtime/CL/CLTuner.h b/arm_compute/runtime/CL/CLTuner.h
index f789500de3..ee83f6933c 100644
--- a/arm_compute/runtime/CL/CLTuner.h
+++ b/arm_compute/runtime/CL/CLTuner.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2018 ARM Limited.
+ * Copyright (c) 2017-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -118,10 +118,8 @@ private:
cl::NDRange find_optimal_lws(ICLKernel &kernel);
std::unordered_map<std::string, cl::NDRange> _lws_table;
- cl::CommandQueue _queue;
- cl::CommandQueue _queue_profiler;
- cl::Event _kernel_event;
- bool _tune_new_kernels;
+ cl::Event _kernel_event;
+ bool _tune_new_kernels;
};
-}
+} // namespace arm_compute
#endif /*__ARM_COMPUTE_CLTUNER_H__ */