diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2019-07-01 17:31:55 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-07-04 10:17:36 +0800 |
commit | 41967144c4b29e2ace0e1ec43b49944c0df3cb9f (patch) | |
tree | e9ba0c6d10bf9906d03579fc33ad5d3045ad5369 /recipes-core/mkl-dnn/mkl-dnn_git.bb | |
parent | cba66dfb7bb96f7b711db8f9c12a325e33af5fd4 (diff) | |
download | meta-intel-41967144c4b29e2ace0e1ec43b49944c0df3cb9f.tar.gz |
mkl-dnn: add ptest
Added api-c & test_c_symbols testcases under ptest.
Shipping benchdnn, which is a standalone correctness and performance
benchmark for Intel(R) Math Kernel Library for Deep
Neural Networks (Intel(R) MKL-DNN).
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-core/mkl-dnn/mkl-dnn_git.bb')
-rw-r--r-- | recipes-core/mkl-dnn/mkl-dnn_git.bb | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/recipes-core/mkl-dnn/mkl-dnn_git.bb b/recipes-core/mkl-dnn/mkl-dnn_git.bb index 2858d876..5846b310 100644 --- a/recipes-core/mkl-dnn/mkl-dnn_git.bb +++ b/recipes-core/mkl-dnn/mkl-dnn_git.bb | |||
@@ -7,11 +7,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=afa44a3d001cc203032135324f9636b7 \ | |||
7 | file://src/cpu/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa" | 7 | file://src/cpu/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a4efa" |
8 | SECTION = "lib" | 8 | SECTION = "lib" |
9 | 9 | ||
10 | inherit pkgconfig cmake | 10 | inherit pkgconfig cmake ptest |
11 | 11 | ||
12 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
13 | SRCREV = "027de7603662a569366e15132ac80298902b96b8" | 13 | SRCREV = "027de7603662a569366e15132ac80298902b96b8" |
14 | SRC_URI = "git://github.com/intel/mkl-dnn.git;branch=rls-v0.19" | 14 | SRC_URI = "git://github.com/intel/mkl-dnn.git;branch=rls-v0.19 \ |
15 | file://run-ptest \ | ||
16 | " | ||
15 | PV = "0.19+git${SRCPV}" | 17 | PV = "0.19+git${SRCPV}" |
16 | 18 | ||
17 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" | 19 | UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>(\d+(\.\d+)+))$" |
@@ -24,3 +26,24 @@ EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" | |||
24 | EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" | 26 | EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" |
25 | EXTRA_OECMAKE += "-DWITH_TEST=ON" | 27 | EXTRA_OECMAKE += "-DWITH_TEST=ON" |
26 | EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''" | 28 | EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''" |
29 | EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON" | ||
30 | |||
31 | do_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 | |||
41 | do_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 | |||
47 | PACKAGES =+ "${PN}-test" | ||
48 | |||
49 | FILES_${PN}-test = "${bindir}/mkl-dnn/*" | ||