aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/SConscript
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-11-09 15:52:00 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit6e4334962913a4b4d88d3d2b9d76ef2b7850a56c (patch)
treec04a97710320f0650db3c68dc722474a0abf03ea /tests/framework/SConscript
parent9c45f56439f5a4aef68901dfe4b7b57d2a7ce85e (diff)
downloadComputeLibrary-6e4334962913a4b4d88d3d2b9d76ef2b7850a56c.tar.gz
COMPMID-663 Adding instrument to return timestamps of clGetEventProfilingInfo
Change-Id: I1037054615593205f07e25fb9b16fecd13407c2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95142 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework/SConscript')
-rw-r--r--tests/framework/SConscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/framework/SConscript b/tests/framework/SConscript
index 92cbd552bb..52b8bed10f 100644
--- a/tests/framework/SConscript
+++ b/tests/framework/SConscript
@@ -28,7 +28,8 @@ Import('vars')
# vars is imported from arm_compute:
variables = [
BoolVariable("pmu", "Enable PMU counters", False),
- BoolVariable("mali", "Enable Mali hardware counters", False)
+ BoolVariable("mali", "Enable Mali hardware counters", False),
+ BoolVariable("opencl_timer", "Enable OpenCL timers", False)
]
# We need a separate set of Variables for the Help message (Otherwise the global variables will get displayed twice)
@@ -62,6 +63,15 @@ if not framework_env['pmu']:
else:
framework_env.Append(CPPDEFINES = ['PMU_ENABLED'])
+if not framework_env['opencl_timer']:
+ # Remove OpenCLTimer files
+ files = [f for f in files if "OpenCLTimer" not in os.path.basename(str(f))]
+else:
+ if not framework_env["opencl"]:
+ print("ERROR: You need opencl=1 to be able to use opencl_timer=1")
+ Exit(1)
+ framework_env.Append(CPPDEFINES = ['OPENCL_TIMER_ENABLED'])
+
if not framework_env['mali']:
# Remove MALI files
files = [f for f in files if "MaliCounter" not in os.path.basename(str(f))]