[meta-intel] [PATCH] mkl-dnn: do not use host machine instructions

Mittal, Anuj anuj.mittal at intel.com
Sat Jun 29 01:40:11 PDT 2019


Can you please submit a patch or open an issue upstream to not use these when cross-compiling?

Thanks,

Anuj

> -----Original Message-----
> From: meta-intel-bounces at yoctoproject.org [mailto:meta-intel-
> bounces at yoctoproject.org] On Behalf Of Naveen Saini
> Sent: Thursday, June 27, 2019 03:15 PM
> To: meta-intel at yoctoproject.org
> Subject: [meta-intel] [PATCH] 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 at intel.com>
> ---
>  recipes-core/mkl-dnn/mkl-dnn_git.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> 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=''"
> --
> 2.17.1
> 
> --
> _______________________________________________
> meta-intel mailing list
> meta-intel at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-intel


More information about the meta-intel mailing list