From ebaddb600795911dc4e4c446d4f612caa009aaa1 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Thu, 17 Oct 2019 14:21:16 +0100 Subject: COMPMID-2452: fixed linker error when cppscheduler=0 Change-Id: I1227436d856f3488635e2b00c886a4deea963f14 Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/2114 Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- tests/validation/NEON/UNIT/RuntimeContext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/validation/NEON/UNIT/RuntimeContext.cpp b/tests/validation/NEON/UNIT/RuntimeContext.cpp index 05670a94e8..68fb0da986 100644 --- a/tests/validation/NEON/UNIT/RuntimeContext.cpp +++ b/tests/validation/NEON/UNIT/RuntimeContext.cpp @@ -23,8 +23,8 @@ */ #include "arm_compute/runtime/RuntimeContext.h" -#include "arm_compute/runtime/CPP/CPPScheduler.h" #include "arm_compute/runtime/NEON/functions/NEActivationLayer.h" +#include "arm_compute/runtime/SchedulerFactory.h" #include "arm_compute/runtime/Tensor.h" #include "support/ToolchainSupport.h" #include "tests/Globals.h" @@ -61,9 +61,9 @@ TEST_CASE(Scheduler, framework::DatasetMode::ALL) ARM_COMPUTE_EXPECT(ctx.scheduler() != nullptr, framework::LogLevel::ERRORS); ARM_COMPUTE_EXPECT(ctx.asset_manager() == nullptr, framework::LogLevel::ERRORS); - // Create a CPPScheduler - CPPScheduler scheduler; - ctx.set_scheduler(&scheduler); + // Create a Scheduler + auto scheduler = SchedulerFactory::create(); + ctx.set_scheduler(scheduler.get()); // Check if the scheduler has been properly setup ARM_COMPUTE_EXPECT(ctx.scheduler() != nullptr, framework::LogLevel::ERRORS); -- cgit v1.2.1