summaryrefslogtreecommitdiffstats
path: root/recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb')
-rw-r--r--recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb b/recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb
new file mode 100644
index 0000000..9f72684
--- /dev/null
+++ b/recipes-core/mkl-dnn/mkl-dnn_1.0.2.bb
@@ -0,0 +1,49 @@
1SUMMARY = "Intel Math Kernel Library for Deep Neural Networks"
2DESCRIPTION = "This software is a user mode library that accelerates\
3deep-learning applications and frameworks on Intel architecture."
4LICENSE = "Apache-2.0 & BSD-3-Clause"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=a34303951205b8c53485477c74052380 \
6 file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a16dd515a \
7 file://src/cpu/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa \
8 file://src/cpu/jit_utils/jitprofiling/LICENSE.BSD;md5=e671ff178b24a95a382ba670503c66fb"
9SECTION = "lib"
10
11inherit pkgconfig cmake ptest
12
13S = "${WORKDIR}/git"
14SRCREV = "3289d3c06e07b55fdbec927461bd89f8989eff5d"
15SRC_URI = "git://github.com/intel/mkl-dnn.git;branch=rls-v1.0 \
16 file://run-ptest \
17"
18
19UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$"
20
21COMPATIBLE_HOST = '(x86_64).*-linux'
22COMPATIBLE_HOST_libc-musl = 'null'
23
24EXTRA_OECMAKE += "-DMKLDNN_LIBRARY_TYPE=SHARED"
25EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP"
26EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON"
27EXTRA_OECMAKE += "-DWITH_TEST=ON"
28EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''"
29EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON"
30
31do_install_append () {
32 install -d ${D}${bindir}/mkl-dnn
33 install -d ${D}${bindir}/mkl-dnn/tests
34 install -d ${D}${bindir}/mkl-dnn/tests/benchdnn
35 install -d ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs
36 install -m 0755 ${B}/tests/benchdnn/benchdnn ${D}${bindir}/mkl-dnn/tests/benchdnn
37 cp -r ${B}/tests/benchdnn/inputs/* ${D}${bindir}/mkl-dnn/tests/benchdnn/inputs
38}
39
40
41do_install_ptest () {
42 install -d ${D}${PTEST_PATH}/tests
43 install -m 0755 ${B}/tests/api-c ${D}${PTEST_PATH}/tests
44 install -m 0755 ${B}/tests/test_c_symbols-c ${D}${PTEST_PATH}/tests
45}
46
47PACKAGES =+ "${PN}-test"
48
49FILES_${PN}-test = "${bindir}/mkl-dnn/*"