COMPMID-417: Remove dependency on CLScheduler from core
Change-Id: I62b46c3d7356572b4ef769d92693d1bc173d1c4e
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78997
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Steven Niu <steven.niu@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
diff --git a/src/core/CL/ICLKernel.cpp b/src/core/CL/ICLKernel.cpp
index 7ac0fe3..5bd7142 100644
--- a/src/core/CL/ICLKernel.cpp
+++ b/src/core/CL/ICLKernel.cpp
@@ -31,7 +31,6 @@
#include "arm_compute/core/Utils.h"
#include "arm_compute/core/Validate.h"
#include "arm_compute/core/Window.h"
-#include "arm_compute/runtime/CL/CLScheduler.h"
#include <cstddef>
@@ -61,7 +60,7 @@
}
ICLKernel::ICLKernel()
- : _kernel(nullptr), _lws_hint(cl::Range_128_1), _target(CLScheduler::get().target())
+ : _kernel(nullptr), _lws_hint(cl::Range_128_1), _target(GPUTarget::MIDGARD)
{
}
diff --git a/src/runtime/CL/functions/CLGEMM.cpp b/src/runtime/CL/functions/CLGEMM.cpp
index 7408054..07b1942 100644
--- a/src/runtime/CL/functions/CLGEMM.cpp
+++ b/src/runtime/CL/functions/CLGEMM.cpp
@@ -101,6 +101,7 @@
_transpose_kernel.configure(b, &_tmp_b);
// Configure matrix multiply kernel
+ _mm_kernel.set_target(CLScheduler::get().target());
_mm_kernel.configure(&_tmp_a, &_tmp_b, output, alpha);
// Allocate intermediate tensors