This gives errors when compiled with musl: Log data follows: | DEBUG: Executing shell function do_configure | -- The C compiler identification is GNU 8.2.0 | -- The CXX compiler identification is GNU 8.2.0 | -- Check for working C compiler: /home/pokybuild/yocto- autobuilder/yocto-worker/nightly-musl/build/build/tmp/work/corei7-64- poky-linux-musl/mkl-dnn/0.17.4-r0/recipe-sysroot-native/usr/bin/x86_64- poky-linux-musl/x86_64-poky-linux-musl-gcc | -- Check for working C compiler: /home/pokybuild/yocto- autobuilder/yocto-worker/nightly-musl/build/build/tmp/work/corei7-64- poky-linux-musl/mkl-dnn/0.17.4-r0/recipe-sysroot-native/usr/bin/x86_64- poky-linux-musl/x86_64-poky-linux-musl-gcc -- works | -- Detecting C compiler ABI info | -- Detecting C compiler ABI info - done | -- Detecting C compile features | -- Detecting C compile features - done | -- Check for working CXX compiler: /home/pokybuild/yocto- autobuilder/yocto-worker/nightly-musl/build/build/tmp/work/corei7-64- poky-linux-musl/mkl-dnn/0.17.4-r0/recipe-sysroot-native/usr/bin/x86_64- poky-linux-musl/x86_64-poky-linux-musl-g++ | -- Check for working CXX compiler: /home/pokybuild/yocto- autobuilder/yocto-worker/nightly-musl/build/build/tmp/work/corei7-64- poky-linux-musl/mkl-dnn/0.17.4-r0/recipe-sysroot-native/usr/bin/x86_64- poky-linux-musl/x86_64-poky-linux-musl-g++ -- works | -- Detecting CXX compiler ABI info | -- Detecting CXX compiler ABI info - done | -- Detecting CXX compile features | -- Detecting CXX compile features - done | -- CMAKE_BUILD_TYPE is unset, defaulting to Release | -- Detecting Intel(R) MKL: trying mklml_intel | -- Detecting Intel(R) MKL: trying mklml_gnu | -- Detecting Intel(R) MKL: trying mklml | -- Detecting Intel(R) MKL: trying mkl_rt | CMake Warning at cmake/MKL.cmake:270 (message): | Intel(R) MKL not found. Some performance features may not be available. | Please run scripts/prepare_mkl.sh to download a minimal set of libraries or | get a full version from https://software.intel.com/en-us/intel-mkl | Call Stack (most recent call first): | cmake/OpenMP.cmake:26 (include) | CMakeLists.txt:69 (include) |
Also fails for 32 bit because that is not supported. We will have to add: COMPATIBLE_HOST = '(x86_64).*-linux' On Wed, 2019-02-13 at 11:03 +0530, Ankit Navik wrote: > Add generic recipe for Intel(R) Math Kernel Library for Deep Neural > Networks. The library accelerates deep-learning applications and > frameworks on Intel architecture. > > Signed-off-by: Ankit Navik <ankit.ta...@gmail.com> > --- > conf/include/maintainers.inc | 1 + > recipes-core/mkl-dnn/mkl-dnn_0.17.4.bb | 19 +++++++++++++++++++ > 2 files changed, 20 insertions(+) > create mode 100644 recipes-core/mkl-dnn/mkl-dnn_0.17.4.bb > > diff --git a/conf/include/maintainers.inc > b/conf/include/maintainers.inc > index d501d5f..0d00884 100644 > --- a/conf/include/maintainers.inc > +++ b/conf/include/maintainers.inc > @@ -17,3 +17,4 @@ RECIPE_MAINTAINER_pn-linux-intel = "Anuj Mittal < > anuj.mit...@intel.com>" > RECIPE_MAINTAINER_pn-linux-intel-rt = "Anuj Mittal < > anuj.mit...@intel.com>" > RECIPE_MAINTAINER_pn-thermald = "Anuj Mittal <anuj.mit...@intel.com> > " > RECIPE_MAINTAINER_pn-xf86-video-ast = "Anuj Mittal < > anuj.mit...@intel.com>" > +RECIPE_MAINTAINER_pn-mkl-dnn = "Ankit Navik <ankit.ta...@gmail.com>" > diff --git a/recipes-core/mkl-dnn/mkl-dnn_0.17.4.bb b/recipes- > core/mkl-dnn/mkl-dnn_0.17.4.bb > new file mode 100644 > index 0000000..22f4bdc > --- /dev/null > +++ b/recipes-core/mkl-dnn/mkl-dnn_0.17.4.bb > @@ -0,0 +1,19 @@ > +SUMMARY = "Intel Math Kernel Library for Deep Neural Networks" > +DESCRIPTION = "This software is a user mode library that > accelerates\ > +deep-learning applications and frameworks on Intel architecture." > +LICENSE = "Apache-2.0 & BSD-3-Clause" > +LIC_FILES_CHKSUM = > "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e \ > + file://tests/gtests/gtest/LICENSE;md5=cbbd27594afd089daa160d3a1 > 6dd515a \ > + file://src/cpu/xbyak/COPYRIGHT;md5=03532861dad9003cc2c17f14fc7a > 4efa" > +SECTION = "lib" > + > +inherit pkgconfig cmake > + > +S = "${WORKDIR}/git" > +SRCREV = "722901c9aaefa579698df778d061d4848ab8c3e3" > +SRC_URI = "git://github.com/intel/mkl-dnn.git;branch=rls-v0.17" > + > +EXTRA_OECMAKE += "-DMKLDNN_LIBRARY_TYPE=SHARED" > +EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" > +EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" > +EXTRA_OECMAKE += "-DWITH_TEST=ON" > -- > 2.7.4 > -- _______________________________________________ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel