From 13d305bed13d18abb8615e5dca5692ff06a789ed Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Thu, 5 Aug 2021 10:54:13 +0100 Subject: Specify GPU high priority files in SConscript Fixes build error when building high priority only operators. Resolves: COMPMID-4758 Change-Id: I535d52db8423c77233859c2f5b42be100b80aa37 Signed-off-by: Michele Di Giorgio Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6046 Tested-by: Arm Jenkins Reviewed-by: Pablo Marquez Tello Comments-Addressed: Arm Jenkins --- SConscript | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/SConscript b/SConscript index 2f53ead569..2f43e39e90 100644 --- a/SConscript +++ b/SConscript @@ -431,14 +431,19 @@ if env['openmp']: runtime_files_hp += Glob('src/runtime/OMP/OMPScheduler.cpp') if env['opencl']: - runtime_files_hp += filelist['gpu']['common'] - runtime_files += Glob('src/runtime/CL/functions/*.cpp') - operators = filelist['gpu']['operators'] for operator in operators: - runtime_files += get_gpu_runtime_files(operator) - if "kernel" in operators[operator]["files"]: - core_files += operators[operator]["files"]["kernel"] + if operator in filelist['gpu']['high_priority']: + runtime_files_hp += get_gpu_runtime_files(operator) + if "kernel" in operators[operator]["files"]: + core_files_hp += operators[operator]["files"]["kernel"] + else: + runtime_files += get_gpu_runtime_files(operator) + if "kernel" in operators[operator]["files"]: + core_files += operators[operator]["files"]["kernel"] + + runtime_files_hp += filelist['gpu']['common'] + runtime_files += Glob('src/runtime/CL/functions/*.cpp') graph_files += Glob('src/graph/backends/CL/*.cpp') -- cgit v1.2.1