Question, enabling NEON H/W

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question, enabling NEON H/W

Jump to solution
1,747 Views
Aemj
Contributor IV

Dear All,

My customer measured the performance of mathematical function, such as Logarithm or Power, on i.MX6S.

He thinks the performance will get better if NEON HW can be enabled.

Now he uses GCC compiler.

Please show me how to enable NOEN H/W for the math functions on i.MX6. (GCC flags, etc.)

Also, please let me know if you have any ideas to improve the math calculation performance.

Best Regards,

Miyamoto

Labels (1)
0 Kudos
1 Solution
689 Views
Yuri
NXP Employee
NXP Employee

1.

Default GCC options regarding floating point support are :

-march=armv7-a -mfpu=vfpv3 -mfloat-abi=softfp

To use the NEON :

-march=armv7-a -mfpu=neon -mfloat-abi=softfp

2.

As for Linux :


“How to create ubuntu hardfloat rootfs for imx6d/q”

< https://community.freescale.com/docs/DOC-95185 >

View solution in original post

0 Kudos
1 Reply
690 Views
Yuri
NXP Employee
NXP Employee

1.

Default GCC options regarding floating point support are :

-march=armv7-a -mfpu=vfpv3 -mfloat-abi=softfp

To use the NEON :

-march=armv7-a -mfpu=neon -mfloat-abi=softfp

2.

As for Linux :


“How to create ubuntu hardfloat rootfs for imx6d/q”

< https://community.freescale.com/docs/DOC-95185 >

0 Kudos