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 <naveen.kumar.saini@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
Naveen Saini 2019-06-27 15:15:11 +08:00 committed by Anuj Mittal
parent 6372bb37d1
commit 16d24415ed

View File

@ -23,3 +23,4 @@ EXTRA_OECMAKE += "-DMKLDNN_LIBRARY_TYPE=SHARED"
EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP"
EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON"
EXTRA_OECMAKE += "-DWITH_TEST=ON" EXTRA_OECMAKE += "-DWITH_TEST=ON"
EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''"