diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-core')
| -rw-r--r-- | dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb (renamed from dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb) | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb index 5b96ea0e..531f80c6 100644 --- a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.1.1.bb +++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_3.5.3.bb | |||
| @@ -3,19 +3,19 @@ SUMMARY = "Deep Neural Network Library" | |||
| 3 | DESCRIPTION = "This software is a user mode library that accelerates\ | 3 | DESCRIPTION = "This software is a user mode library that accelerates\ |
| 4 | deep-learning applications and frameworks on Intel architecture." | 4 | deep-learning applications and frameworks on Intel architecture." |
| 5 | LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" | 5 | LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8e17c0f9656ebaf0c380d9b22707c846 \ | 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b64000f6e7d52516017622a37a94ce9 \ |
| 7 | file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ | 7 | file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ |
| 8 | file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | 8 | file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ |
| 9 | file://src/cpu/x64/jit_utils/jitprofiling/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ | 9 | file://src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ |
| 10 | file://doc/assets/mathjax/MathJax.js;endline=17;md5=25a014ad78c3d72a0e15d15f1d007c20 \ | ||
| 11 | " | 10 | " |
| 12 | SECTION = "lib" | 11 | SECTION = "lib" |
| 13 | 12 | ||
| 14 | inherit pkgconfig cmake ptest | 13 | inherit pkgconfig cmake ptest |
| 15 | 14 | ||
| 16 | S = "${WORKDIR}/git" | 15 | DNN_BRANCH = "rls-v${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
| 17 | SRCREV = "53f53c2bb859d386a40e03f7623a4f9af758c1b3" | 16 | |
| 18 | SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=rls-v2.1 \ | 17 | SRCREV = "66f0cb9eb66affd2da3bf5f8d897376f04aae6af" |
| 18 | SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=${DNN_BRANCH};protocol=https \ | ||
| 19 | file://run-ptest \ | 19 | file://run-ptest \ |
| 20 | " | 20 | " |
| 21 | 21 | ||
| @@ -24,7 +24,7 @@ UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | |||
| 24 | CVE_PRODUCT = "intel:math_kernel_library" | 24 | CVE_PRODUCT = "intel:math_kernel_library" |
| 25 | 25 | ||
| 26 | COMPATIBLE_HOST = '(x86_64).*-linux' | 26 | COMPATIBLE_HOST = '(x86_64).*-linux' |
| 27 | COMPATIBLE_HOST_libc-musl = 'null' | 27 | COMPATIBLE_HOST:libc-musl = 'null' |
| 28 | 28 | ||
| 29 | EXTRA_OECMAKE += " \ | 29 | EXTRA_OECMAKE += " \ |
| 30 | -DDNNL_LIBRARY_TYPE=SHARED \ | 30 | -DDNNL_LIBRARY_TYPE=SHARED \ |
| @@ -33,12 +33,14 @@ EXTRA_OECMAKE += " \ | |||
| 33 | -DDNNL_CPU_RUNTIME=OMP \ | 33 | -DDNNL_CPU_RUNTIME=OMP \ |
| 34 | -DDNNL_ARCH_OPT_FLAGS="" \ | 34 | -DDNNL_ARCH_OPT_FLAGS="" \ |
| 35 | -DCMAKE_SKIP_RPATH=ON \ | 35 | -DCMAKE_SKIP_RPATH=ON \ |
| 36 | -DONEDNN_BUILD_GRAPH=OFF \ | ||
| 37 | -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ | ||
| 36 | " | 38 | " |
| 37 | 39 | ||
| 38 | PACKAGECONFIG ??= "" | 40 | PACKAGECONFIG ??= "gpu" |
| 39 | PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers ocl-icd, intel-compute-runtime" | 41 | PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers virtual/opencl-icd, intel-compute-runtime" |
| 40 | 42 | ||
| 41 | do_install_append () { | 43 | do_install:append () { |
| 42 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs | 44 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs |
| 43 | install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn | 45 | install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn |
| 44 | cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs | 46 | cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs |
| @@ -52,4 +54,4 @@ do_install_ptest () { | |||
| 52 | 54 | ||
| 53 | PACKAGES =+ "${PN}-test" | 55 | PACKAGES =+ "${PN}-test" |
| 54 | 56 | ||
| 55 | FILES_${PN}-test = "${bindir}/mkl-dnn/*" | 57 | FILES:${PN}-test = "${bindir}/mkl-dnn/*" |
