diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-10-26 15:23:08 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 7068f9900d136312318ff430aef588b14e0c87ad (patch) | |
tree | b57ca81231860f1d8755e6f18e5be7c959fb60c6 /examples/SConscript | |
parent | d60737592736715dcfd0520535c48190d4ac77d2 (diff) | |
download | ComputeLibrary-7068f9900d136312318ff430aef588b14e0c87ad.tar.gz |
COMPMID-631: Merge branches/gles_compute branch
Last commit:
commit b25c5f68042b0c81bf611d59a1bb8535e1c42497
Author: Xinghang Zhou <xinghang.zhou@arm.com>
Date: Wed Oct 25 18:48:10 2017 +0800
Synced validation's tolerances of GCSoftmax from cl side
Change-Id: Ibe72054205c1c8721845d679a31af7ed0a7c5cf6
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93283
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'examples/SConscript')
-rw-r--r-- | examples/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/SConscript b/examples/SConscript index 52d2f26cfe..90b271d473 100644 --- a/examples/SConscript +++ b/examples/SConscript @@ -27,11 +27,18 @@ Import('env') if env['opencl']: Import('opencl') +if env['gles_compute'] and env['os'] != 'android': + Import('egl') + Import('glesv2') + examples_env = env.Clone() examples_env.Append(CPPPATH = ["#"]) examples_env.Append(LIBPATH = ["#build/%s/opencl-1.2-stubs" % env['build_dir']]) +if env['gles_compute'] and env['os'] != 'android': + examples_env.Append(LIBPATH = ["#build/%s/opengles-3.1/stubs" % env['build_dir']]) + # Build examples utils = examples_env.Object("../utils/Utils.cpp") @@ -86,3 +93,19 @@ if env['neon']: Depends(prog, arm_compute_dependency) alias = examples_env.Alias(example, prog) Default(alias) + +if env['gles_compute']: + for file in Glob("./gc_*.cpp"): + example = os.path.basename(os.path.splitext(str(file))[0]) + if env['os'] != 'android': + examples_env.Append(CPPPATH = ["#opengles-3.1/include", "#opengles-3.1/mali_include"]) + prog = examples_env.Program(example, ["{}.cpp".format(example), utils], CPPDEFINES=['ARM_COMPUTE_GC'], LIBS = [arm_compute_libs, "EGL", "GLESv2"]) + Depends(prog, [arm_compute_dependency, egl, glesv2]) + else: + if env['arch'] != 'armv7a': + prog = examples_env.Program(example, ["{}.cpp".format(example), utils], CPPDEFINES=['ARM_COMPUTE_GC'], LIBS = [arm_compute_libs, "EGL", "GLESv3"]) + else: + prog = examples_env.Program(example, ["{}.cpp".format(example), utils], CPPDEFINES=['ARM_COMPUTE_GC'], LIBS = [arm_compute_libs, "EGL", "GLESv2"]) + Depends(prog, [arm_compute_dependency]) + alias = examples_env.Alias(example, prog) + Default(alias) |