diff options
author | Naveen Saini <naveen.kumar.saini@intel.com> | 2019-06-27 15:15:11 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-07-01 10:15:20 +0800 |
commit | 16d24415ed7640f2aa24fd78cd22c88964d689d5 (patch) | |
tree | e6cc5d5beec29f66ff0438bc4700f580863e1a5b | |
parent | 6372bb37d10bed4090f032b944fde4c6a87dd695 (diff) | |
download | meta-intel-16d24415ed7640f2aa24fd78cd22c88964d689d5.tar.gz |
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>
-rw-r--r-- | recipes-core/mkl-dnn/mkl-dnn_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
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" | |||
23 | EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" | 23 | EXTRA_OECMAKE += "-DMKLDNN_THREADING=OMP" |
24 | EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" | 24 | EXTRA_OECMAKE += "-DWITH_EXAMPLE=ON" |
25 | EXTRA_OECMAKE += "-DWITH_TEST=ON" | 25 | EXTRA_OECMAKE += "-DWITH_TEST=ON" |
26 | EXTRA_OECMAKE += "-DARCH_OPT_FLAGS=''" | ||