diff options
Diffstat (limited to 'recipes-core/mkl-dnn/mkl-dnn_1.1.1.bb')
-rw-r--r-- | recipes-core/mkl-dnn/mkl-dnn_1.1.1.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes-core/mkl-dnn/mkl-dnn_1.1.1.bb b/recipes-core/mkl-dnn/mkl-dnn_1.1.1.bb new file mode 100644 index 00000000..0e18483e --- /dev/null +++ b/recipes-core/mkl-dnn/mkl-dnn_1.1.1.bb | |||
@@ -0,0 +1,55 @@ | |||
1 | SUMMARY = "Deep Neural Network Library" | ||
2 | DESCRIPTION = "This software is a user mode library that accelerates\ | ||
3 | deep-learning applications and frameworks on Intel architecture." | ||
4 | LICENSE = "Apache-2.0 & BSD-3-Clause & BSL-1.0" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=477df9cc728dd9c63128c0f3525f4649 \ | ||
6 | file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \ | ||
7 | file://src/cpu/xbyak/COPYRIGHT;md5=3b9bf048d063d54cdb28964db558bcc7 \ | ||
8 | file://src/cpu/jit_utils/jitprofiling/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb \ | ||
9 | file://cmake/Copyright.txt;md5=622747147b46f22e1953876a7cba3323 \ | ||
10 | file://doc/assets/mathjax/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | ||
11 | file://src/common/LICENSE_1_0;md5=e4224ccaecb14d942c71d31bef20d78c \ | ||
12 | " | ||
13 | SECTION = "lib" | ||
14 | |||
15 | inherit pkgconfig cmake ptest | ||
16 | |||
17 | S = "${WORKDIR}/git" | ||
18 | SRCREV = "52c3052df8ec1d5b8b45cb6c350a952840eabd42" | ||
19 | SRC_URI = "git://github.com/intel/mkl-dnn.git;branch=rls-v1.1 \ | ||
20 | file://run-ptest \ | ||
21 | " | ||
22 | |||
23 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | ||
24 | |||
25 | CVE_PRODUCT = "intel:math_kernel_library" | ||
26 | |||
27 | COMPATIBLE_HOST = '(x86_64).*-linux' | ||
28 | COMPATIBLE_HOST_libc-musl = 'null' | ||
29 | |||
30 | EXTRA_OECMAKE += "-DDNNL_LIBRARY_TYPE=SHARED" | ||
31 | EXTRA_OECMAKE += "-DDNNL_THREADING=OMP" | ||
32 | EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" | ||
33 | EXTRA_OECMAKE += "-DWITH_TEST=ON" | ||
34 | EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''" | ||
35 | EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON" | ||
36 | |||
37 | do_install_append () { | ||
38 | install -d ${D}${bindir}/mkl-dnn | ||
39 | install -d ${D}${bindir}/mkl-dnn/tests | ||
40 | install -d ${D}${bindir}/mkl-dnn/tests/benchdnn | ||
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 | |||
47 | do_install_ptest () { | ||
48 | install -d ${D}${PTEST_PATH}/tests | ||
49 | install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests | ||
50 | install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests | ||
51 | } | ||
52 | |||
53 | PACKAGES =+ "${PN}-test" | ||
54 | |||
55 | FILES_${PN}-test = "${bindir}/mkl-dnn/*" | ||