diff options
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.6.2.bb')
-rw-r--r-- | dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.6.2.bb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.6.2.bb b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.6.2.bb new file mode 100644 index 00000000..82d31d71 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/dnn/onednn_2.6.2.bb | |||
@@ -0,0 +1,54 @@ | |||
1 | HOMEPAGE = "https://www.oneapi.com" | ||
2 | SUMMARY = "Deep Neural Network Library" | ||
3 | DESCRIPTION = "This software is a user mode library that accelerates\ | ||
4 | deep-learning applications and frameworks on Intel architecture." | ||
5 | LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b48e3de3bfd47c27882a0d85b20823f5 \ | ||
7 | file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ | ||
8 | file://src/cpu/x64/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | ||
9 | file://src/common/ittnotify/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ | ||
10 | " | ||
11 | SECTION = "lib" | ||
12 | |||
13 | inherit pkgconfig cmake ptest | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | SRCREV = "b94c58c212cb54826b9c10602b045179c2ded91e" | ||
17 | SRC_URI = "git://github.com/oneapi-src/oneDNN.git;branch=rls-v2.6;protocol=https \ | ||
18 | file://run-ptest \ | ||
19 | " | ||
20 | |||
21 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | ||
22 | |||
23 | CVE_PRODUCT = "intel:math_kernel_library" | ||
24 | |||
25 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
26 | COMPATIBLE_HOST:libc-musl = 'null' | ||
27 | |||
28 | EXTRA_OECMAKE += " \ | ||
29 | -DDNNL_LIBRARY_TYPE=SHARED \ | ||
30 | -DDNNL_BUILD_EXAMPLES=ON \ | ||
31 | -DDNNL_BUILD_TESTS=ON \ | ||
32 | -DDNNL_CPU_RUNTIME=OMP \ | ||
33 | -DDNNL_ARCH_OPT_FLAGS="" \ | ||
34 | -DCMAKE_SKIP_RPATH=ON \ | ||
35 | " | ||
36 | |||
37 | PACKAGECONFIG ??= "gpu" | ||
38 | PACKAGECONFIG[gpu] = "-DDNNL_GPU_RUNTIME=OCL, , opencl-headers ocl-icd, intel-compute-runtime" | ||
39 | |||
40 | do_install:append () { | ||
41 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs | ||
42 | install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn | ||
43 | cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs | ||
44 | } | ||
45 | |||
46 | do_install_ptest () { | ||
47 | install -d ${D}${PTEST_PATH}/tests | ||
48 | install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests | ||
49 | install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests | ||
50 | } | ||
51 | |||
52 | PACKAGES =+ "${PN}-test" | ||
53 | |||
54 | FILES:${PN}-test = "${bindir}/mkl-dnn/*" | ||