From 16d24415ed7640f2aa24fd78cd22c88964d689d5 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Thu, 27 Jun 2019 15:15:11 +0800 Subject: mkl-dnn: do not use host machine instructions For GNU* Compiler Collection version 5 and newer the default options are `-march=native -mtune=native`, which should not happen in cross compilation environment. ARCH_OPT_FLAGS=\"\" does not allow to use host machine instructions. For more information, please check: http://intel.github.io/mkl-dnn/dev_guide_build_options.html Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- recipes-core/mkl-dnn/mkl-dnn_git.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'recipes-core') diff --git a/recipes-core/mkl-dnn/mkl-dnn_git.bb b/recipes-core/mkl-dnn/mkl-dnn_git.bb index 14f4cec4..2858d876 100644 --- a/recipes-core/mkl-dnn/mkl-dnn_git.bb +++ b/recipes-core/mkl-dnn/mkl-dnn_git.bb @@ -23,3 +23,4 @@ EXTRA_OECMAKE += "-DMKLDNN_LIBRARY_TYPE=SHARED" EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" EXTRA_OECMAKE += "-DWITH_TEST=ON" +EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''" -- cgit v1.2.3-54-g00ecf