diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-07-17 15:22:17 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 15d5ac8dd039132926ac8012559ca5e3a405f858 (patch) | |
tree | 8969385f54cc65958ed8ab3825c992a91970f486 /examples/SConscript | |
parent | 2ca209eaf3e1dee31bc2287be1f4e501697456db (diff) | |
download | ComputeLibrary-15d5ac8dd039132926ac8012559ca5e3a405f858.tar.gz |
COMPMID-415 Fix issue with OpenCL examples
Change-Id: Ie4797e88fd2ad38f30cb69651ed37481b835fae8
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80781
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'examples/SConscript')
-rw-r--r-- | examples/SConscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/SConscript b/examples/SConscript index 04569c6ceb..2303109bf5 100644 --- a/examples/SConscript +++ b/examples/SConscript @@ -48,7 +48,7 @@ else: if env['opencl'] and env['neon']: for file in Glob("./neoncl_*.cpp"): example = os.path.basename(os.path.splitext(str(file))[0]) - prog = examples_env.Program(example, ["{}.cpp".format(example), utils], LIBS = [arm_compute_lib, "OpenCL"]) + prog = examples_env.Program(example, ["{}.cpp".format(example), utils], CPPDEFINES=['ARM_COMPUTE_CL'], LIBS = [arm_compute_lib, "OpenCL"]) Depends(prog, [arm_compute_dependency, opencl]) alias = examples_env.Alias(example, prog) Default(alias) @@ -56,7 +56,7 @@ if env['opencl'] and env['neon']: if env['opencl']: for file in Glob("./cl_*.cpp"): example = os.path.basename(os.path.splitext(str(file))[0]) - prog = examples_env.Program(example, ["{}.cpp".format(example), utils], LIBS = [arm_compute_lib, "OpenCL"]) + prog = examples_env.Program(example, ["{}.cpp".format(example), utils], CPPDEFINES=['ARM_COMPUTE_CL'], LIBS = [arm_compute_lib, "OpenCL"]) Depends(prog, [arm_compute_dependency, opencl]) alias = examples_env.Alias(example, prog) Default(alias) |