From f30e749e89d243d195ae3a0f2611570a1d83a2bb Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Thu, 18 Mar 2021 09:51:50 +0800 Subject: onednn: upgrade 2.0 -> 2.1.1 LICENSE updated. Added 'Copyright 2020 Codeplay Software Limited' Ref: https://github.com/oneapi-src/oneDNN/commit/5d63af1b4ace43c22433ae1f135b92e113a32082 LICENSE text removed from src/common/primitive_hashing.hpp. Release notes: https://github.com/oneapi-src/oneDNN/releases/tag/v2.1.1 Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- .../clang-layer/recipes-core/dnn/onednn_2.0.bb | 56 ---------------------- .../clang-layer/recipes-core/dnn/onednn_2.1.1.bb | 55 +++++++++++++++++++++ 2 files changed, 55 insertions(+), 56 deletions(-) delete mode 100644 dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.0.bb create mode 100644 dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb (limited to 'dynamic-layers/clang-layer/recipes-core/dnn') diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.0.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.0.bb deleted file mode 100644 index c14237d5..00000000 --- a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.0.bb +++ /dev/null @@ -1,56 +0,0 @@ -HOMEPAGE = "https://www.oneapi.com" -SUMMARY = "Deep Neural Network Library" -DESCRIPTION = "This software is a user mode library that accelerates\ -deep-learning applications and frameworks on Intel architecture." -LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c441291ac5f15bdc6b09b4cc02ece35b \ - file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ - file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ - file://src/cpu/x64/jit_utils/jitprofiling/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ - file://doc/assets/mathjax/MathJax.js;endline=17;md5=25a014ad78c3d72a0e15d15f1d007c20 \ - file://src/common/primitive_hashing.hpp;beginline=223;endline=226;md5=f56de33cb6ec02de60006b10e027b300 \ - " -SECTION = "lib" - -inherit pkgconfig cmake ptest - -S = "${WORKDIR}/git" -SRCREV = "83ebc40d86bc54f0f23e947235e53570eeacf254" -SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=rls-v2.0-beta10 \ - file://run-ptest \ - " - -UPSTREAM_CHECK_GITTAGREGEX = "^v(?P(\d+(\.\d+)+))$" - -CVE_PRODUCT = "intel:math_kernel_library" - -COMPATIBLE_HOST = '(x86_64).*-linux' -COMPATIBLE_HOST_libc-musl = 'null' - -EXTRA_OECMAKE += " \ - -DDNNL_LIBRARY_TYPE=SHARED \ - -DDNNL_BUILD_EXAMPLES=ON \ - -DDNNL_BUILD_TESTS=ON \ - -DDNNL_CPU_RUNTIME=OMP \ - -DDNNL_ARCH_OPT_FLAGS="" \ - -DCMAKE_SKIP_RPATH=ON \ - " - -PACKAGECONFIG ??= "" -PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers ocl-icd, intel-compute-runtime" - -do_install_append () { - install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs - install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn - cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs -} - -do_install_ptest () { - install -d ${D}${PTEST_PATH}/tests - install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests - install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests -} - -PACKAGES =+ "${PN}-test" - -FILES_${PN}-test = "${bindir}/mkl-dnn/*" diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb new file mode 100644 index 00000000..5b96ea0e --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb @@ -0,0 +1,55 @@ +HOMEPAGE = "https://www.oneapi.com" +SUMMARY = "Deep Neural Network Library" +DESCRIPTION = "This software is a user mode library that accelerates\ +deep-learning applications and frameworks on Intel architecture." +LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8e17c0f9656ebaf0c380d9b22707c846 \ + file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ + file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ + file://src/cpu/x64/jit_utils/jitprofiling/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ + file://doc/assets/mathjax/MathJax.js;endline=17;md5=25a014ad78c3d72a0e15d15f1d007c20 \ + " +SECTION = "lib" + +inherit pkgconfig cmake ptest + +S = "${WORKDIR}/git" +SRCREV = "53f53c2bb859d386a40e03f7623a4f9af758c1b3" +SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=rls-v2.1 \ + file://run-ptest \ + " + +UPSTREAM_CHECK_GITTAGREGEX = "^v(?P(\d+(\.\d+)+))$" + +CVE_PRODUCT = "intel:math_kernel_library" + +COMPATIBLE_HOST = '(x86_64).*-linux' +COMPATIBLE_HOST_libc-musl = 'null' + +EXTRA_OECMAKE += " \ + -DDNNL_LIBRARY_TYPE=SHARED \ + -DDNNL_BUILD_EXAMPLES=ON \ + -DDNNL_BUILD_TESTS=ON \ + -DDNNL_CPU_RUNTIME=OMP \ + -DDNNL_ARCH_OPT_FLAGS="" \ + -DCMAKE_SKIP_RPATH=ON \ + " + +PACKAGECONFIG ??= "" +PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers ocl-icd, intel-compute-runtime" + +do_install_append () { + install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs + install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn + cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs +} + +do_install_ptest () { + install -d ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests + install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests +} + +PACKAGES =+ "${PN}-test" + +FILES_${PN}-test = "${bindir}/mkl-dnn/*" -- cgit v1.2.3-54-g00ecf