How to have OpenMP available on Yocto for iMX6?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to have OpenMP available on Yocto for iMX6?

ソリューションへジャンプ
7,662件の閲覧回数
maurice
Contributor III

Hello,

I have the the official release from Freescale to use Yocto. I created a sdk cross-toolchain by the command 'bitbake linux-imx -c populate-sdk' then I launched the script in tmp/deploy/sdk. Version of poky used is 1.5.3.

However, I want to use OpenMP in this cross-toolchain.

By default, the option of openMP is disable hence I modified  these recipes to comment the "--disable libgomp" :

  • sources/poky/meta/recipes-core/gettext/gettext_0.18.3.1.bb
  • sources/poky/meta/recipes-devtools/gcc/gcc-4.8.inc
  • sources/poky/meta/recipes-devtools/gcc/gcc-cross-canadian.inc

Then, after creating  the sdk cross-toolchain, I have his error

"...i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: error:  hello uses VFP register arguments, ./libgomp.a(parallel.o) does not

... i686-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.8.1/ld: failed to merge target specific data of file ./libgomp.a(parallel.o)"

Indeed, I need to use the option "-mfloat-abi=hard".

How can I do that?

Thank you

Maurice

タグ(5)
1 解決策
4,216件の閲覧回数
maurice
Contributor III

Hello,

One solution to have OpenMP is to edit the configure file "local.conf" by adding :

CORE_IMAGE_EXTRA_INSTALL += libgomp libgomp-dev libgomp-staticdev

BR

Maurice

元の投稿で解決策を見る

2 返答(返信)
4,217件の閲覧回数
maurice
Contributor III

Hello,

One solution to have OpenMP is to edit the configure file "local.conf" by adding :

CORE_IMAGE_EXTRA_INSTALL += libgomp libgomp-dev libgomp-staticdev

BR

Maurice

4,216件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi maurice

My opinion that this may be caused by specifics of hard float point

implementation on i.MX6. According to links below

"support for this lib [OpenMP] is only for ARMv7 arch ..only HardFloat can be used"

Also from sect.12.3.2 "Core configuration" IMX6DQRM  :

"FPU" is not present, only NEON. This may incur some

implications mentioned in links below

http://openmp.org/forum/viewtopic.php?f=3&t=1255

https://wiki.debian.org/ArmHardFloatPort

For speeding resolution I would suggest to post this

to meta-fsl-arm mailing list, so that our yocto developers

or someone familiar with Yocto/OpenMP integration could try

to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------