From 15d5ac8dd039132926ac8012559ca5e3a405f858 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Mon, 17 Jul 2017 15:22:17 +0100 Subject: COMPMID-415 Fix issue with OpenCL examples Change-Id: Ie4797e88fd2ad38f30cb69651ed37481b835fae8 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80781 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen --- tests/SConscript | 2 +- tests/benchmark_new/main.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/SConscript b/tests/SConscript index 291a7a5555..77d370f91a 100644 --- a/tests/SConscript +++ b/tests/SConscript @@ -150,7 +150,7 @@ files_benchmark += Glob('new/benchmark_new/*.cpp') if env['opencl']: Import('opencl') - benchmark_env.Append(CPPDEFINES=['OPENCL']) + benchmark_env.Append(CPPDEFINES=['ARM_COMPUTE_CL']) files_benchmark += Glob('new/benchmark_new/CL/*/*.cpp') files_benchmark += Glob('new/benchmark_new/CL/*.cpp') diff --git a/tests/benchmark_new/main.cpp b/tests/benchmark_new/main.cpp index 4c6811e372..46c51b6cfd 100644 --- a/tests/benchmark_new/main.cpp +++ b/tests/benchmark_new/main.cpp @@ -30,9 +30,9 @@ #include "support/ToolchainSupport.h" #include "tests/TensorLibrary.h" -#ifdef OPENCL +#ifdef ARM_COMPUTE_CL #include "arm_compute/runtime/CL/CLScheduler.h" -#endif /* OPENCL */ +#endif /* ARM_COMPUTE_CL */ #include "arm_compute/runtime/Scheduler.h" #include @@ -55,9 +55,9 @@ std::unique_ptr library; int main(int argc, char **argv) { -#ifdef OPENCL +#ifdef ARM_COMPUTE_CL CLScheduler::get().default_init(); -#endif /* OPENCL */ +#endif /* ARM_COMPUTE_CL */ framework::Framework &framework = framework::Framework::get(); -- cgit v1.2.1