diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2020-04-20 15:27:26 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-04-21 22:07:00 +0800 |
commit | 53c87950e8bb913fab021213469ab8ea1d58c2f1 (patch) | |
tree | 8ab4b96e0ea058a84c7e3c80df04c468447913ed /dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch | |
parent | 28c9337302f0a4525c6696549c7ea7800d6c63a1 (diff) | |
download | meta-intel-53c87950e8bb913fab021213469ab8ea1d58c2f1.tar.gz |
mkl-dnn: upgrade 1.2.2 -> 1.4
The name of project has changed to oneDNN. Enable GPU engine to be built
by default which would need clang layer to be included.
Also include two minor fixes to install logic that have been submitted
for review upstream.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch b/dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch new file mode 100644 index 00000000..aee0934a --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/dnn/files/0001-src-CMakeLists.txt-fix-FindOpenCL.cmake-source-path.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 89ebbee73ff0af48eaaec63335b749a176a317bb Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Tue, 21 Apr 2020 09:18:09 +0800 | ||
4 | Subject: [PATCH 1/2] src/CMakeLists.txt: fix FindOpenCL.cmake source path | ||
5 | |||
6 | The existing logic doesn't work when DESTDIR is being passed to cmake. | ||
7 | The file is installed in DESTDIR/CMAKE_INSTALL_PREFIX/libdir while we're | ||
8 | trying to copy it from CMAKE_INSTALL_PREFIX/libdir. | ||
9 | |||
10 | Use the file from source tree instead. | ||
11 | |||
12 | Upstream-Status: Submitted | ||
13 | |||
14 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
15 | --- | ||
16 | src/CMakeLists.txt | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
20 | index 88e318923..0c99fefae 100644 | ||
21 | --- a/src/CMakeLists.txt | ||
22 | +++ b/src/CMakeLists.txt | ||
23 | @@ -203,7 +203,7 @@ if(DNNL_GPU_RUNTIME STREQUAL "OCL") | ||
24 | install(FILES | ||
25 | "../cmake/FindOpenCL.cmake" | ||
26 | DESTINATION ${LIB_CONFIG_INSTALL_DIR}) | ||
27 | - install(FILES "${CMAKE_INSTALL_PREFIX}/${LIB_CONFIG_INSTALL_DIR}/FindOpenCL.cmake" | ||
28 | + install(FILES "../cmake/FindOpenCL.cmake" | ||
29 | DESTINATION ${LIB_CONFIG_INSTALL_DIR_COMPAT}) | ||
30 | endif() | ||
31 | |||
32 | -- | ||
33 | 2.25.3 | ||
34 | |||