diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2020-03-19 07:13:09 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-04-04 18:18:52 +0800 |
commit | e226f8983bc33a9b76b69b3df29af3dda7aec988 (patch) | |
tree | 727bc910d87682b9d8b02144e35069f5785ac125 /dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch | |
parent | 19e46a93c042d5f1ba2747f2bff7f4a8db77c000 (diff) | |
download | meta-intel-e226f8983bc33a9b76b69b3df29af3dda7aec988.tar.gz |
intel-compute-runtime: upgrade 20.04.15428 -> 20.10.16259
Replace a local patch with a backport that allows defining value for
cloc_cmd_prefix.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch new file mode 100644 index 00000000..d3e7d14a --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/compute-runtime/intel-compute-runtime/enable-external-offline-compiler.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 6f6d64569d75f6fc352ce7ce3a65dd88f0f84b99 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dongwon Kim <dongwon.kim@intel.com> | ||
3 | Date: Wed, 25 Mar 2020 15:02:43 -0700 | ||
4 | Subject: [PATCH] Optionally enable external ocl offline compiler | ||
5 | |||
6 | Expand commit af78548e80cb293ccc6b02b45ac03d249de03bc6 to | ||
7 | scheduler's build configuration | ||
8 | |||
9 | Change-Id: I04a5fc5f85d15bac040ad699df4c39cc2e0182aa | ||
10 | Signed-off-by: Dongwon Kim <dongwon.kim@intel.com> | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
14 | --- | ||
15 | opencl/source/scheduler/scheduler_binary.cmake | 15 +++++++++------ | ||
16 | 1 file changed, 9 insertions(+), 6 deletions(-) | ||
17 | |||
18 | diff --git a/opencl/source/scheduler/scheduler_binary.cmake b/opencl/source/scheduler/scheduler_binary.cmake | ||
19 | index 740ff7d63..c57e28f78 100644 | ||
20 | --- a/opencl/source/scheduler/scheduler_binary.cmake | ||
21 | +++ b/opencl/source/scheduler/scheduler_binary.cmake | ||
22 | @@ -31,13 +31,16 @@ function(compile_kernel target gen_type platform_type kernel) | ||
23 | set(OUTPUTPATH "${OUTPUTDIR}/${BASENAME}_${family_name_with_type}.bin") | ||
24 | |||
25 | set(SCHEDULER_CPP "${OUTPUTDIR}/${BASENAME}_${family_name_with_type}.cpp") | ||
26 | - if(WIN32) | ||
27 | - set(cloc_cmd_prefix ocloc) | ||
28 | - else() | ||
29 | - if(DEFINED NEO__IGC_LIBRARY_PATH) | ||
30 | - set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
31 | + | ||
32 | + if(NOT DEFINED cloc_cmd_prefix) | ||
33 | + if(WIN32) | ||
34 | + set(cloc_cmd_prefix ocloc) | ||
35 | else() | ||
36 | - set(cloc_cmd_prefix LD_LIBRARY_PATH=$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
37 | + if(DEFINED NEO__IGC_LIBRARY_PATH) | ||
38 | + set(cloc_cmd_prefix LD_LIBRARY_PATH=${NEO__IGC_LIBRARY_PATH}:$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
39 | + else() | ||
40 | + set(cloc_cmd_prefix LD_LIBRARY_PATH=$<TARGET_FILE_DIR:ocloc_lib> $<TARGET_FILE:ocloc>) | ||
41 | + endif() | ||
42 | endif() | ||
43 | endif() | ||
44 | list(APPEND __cloc__options__ "-cl-kernel-arg-info") | ||