diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2021-08-05 10:54:13 +0100 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2021-08-06 09:27:52 +0000 |
commit | 760c7834374be65c27cdf86aa8fbdd005f313255 (patch) | |
tree | ece6b3b4546d64bddb0dc27fc7b1b14ce0cf8327 | |
parent | f289e57eaaf61b0e5a47a00a76e36c61947c7312 (diff) | |
download | ComputeLibrary-760c7834374be65c27cdf86aa8fbdd005f313255.tar.gz |
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 <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6046
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r-- | SConscript | 17 |
1 files 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') |