From 31df05a1870662a7288fbaeb6fbc7fc458bb5a73 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Wed, 9 Nov 2022 15:57:48 +0000 Subject: Remove dynamic fusion prototype with tests and examples Public headers of the new experimental dynamic fusion can be found in arm_compute/dynamic_fusion/ New examples on how to use the interface can be found in tests/validation/dynamic_fusion/gpu/Integration.cpp Resolves COMPMID-5683 Change-Id: I7ccb902a227fb487562df15fc3c30118d1d95bbd Signed-off-by: SiCong Li Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8671 Reviewed-by: Jakub Sujak Reviewed-by: Gunes Bayir Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- src/runtime/CL/CLTuner.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/runtime/CL/CLTuner.cpp') diff --git a/src/runtime/CL/CLTuner.cpp b/src/runtime/CL/CLTuner.cpp index 8ce5177847..1cc20f0c1e 100644 --- a/src/runtime/CL/CLTuner.cpp +++ b/src/runtime/CL/CLTuner.cpp @@ -28,9 +28,6 @@ #include "arm_compute/runtime/CL/CLScheduler.h" #include "src/core/CL/ICLKernel.h" #include "support/StringSupport.h" -#if defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) -#include "src/gpu/cl/kernels/experimental/dynamic_fusion/ClCompositeKernel.h" -#endif // defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) #include #include @@ -65,26 +62,6 @@ private: ITensorPack &_tensors; }; -#if defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) -struct CompositeKernelData : public CLTuner::IKernelData -{ - CompositeKernelData(ITensorPack &tensors, const experimental::dynamic_fusion::ClExecutionDescriptor &exec_desc) - : _tensors{ tensors }, _exec_desc{ exec_desc } - { - } - ~CompositeKernelData() override = default; - void do_run(ICLKernel &kernel, cl::CommandQueue &queue) override - { - // ClCompositeKernel is purely stateless, and thus always requires memory injection - kernel.run_composite_op(_tensors, kernel.window(), queue, _exec_desc); - } - -private: - ITensorPack &_tensors; - const experimental::dynamic_fusion::ClExecutionDescriptor &_exec_desc; -}; -#endif // defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) - bool CLTuner::kernel_event_is_set() const { return _kernel_event() != nullptr; @@ -165,15 +142,6 @@ void CLTuner::tune_kernel_dynamic(ICLKernel &kernel, ITensorPack &tensors) do_tune_kernel_dynamic(kernel, &data); } -#if defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) -void CLTuner::tune_kernel_dynamic(ICLKernel &kernel, ITensorPack &tensors, const experimental::dynamic_fusion::ClExecutionDescriptor &exec_desc) -{ - CompositeKernelData data{ tensors, exec_desc }; - - do_tune_kernel_dynamic(kernel, &data); -} -#endif // defined(ENABLE_EXPERIMENTAL_DYNAMIC_FUSION) - void CLTuner::add_tuning_params(const std::string &kernel_id, CLTuningParams optimal_tuning_params) { _tuning_params_table.emplace(kernel_id, optimal_tuning_params); -- cgit v1.2.1