UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
343 Views
Registered: ‎08-27-2018

_Float128 support in SDSoC

Hi

I am trying to implement ImageMagick application on Zynq ZCU102. When I was building it, the compiler complained about __float128 and _Float128 and the build failed.

...
/usr/include/bits/floatn.h:87:9: error: ‘__float128’ does not name a type; did you mean ‘__cfloat128’? typedef __float128 _Float128; ^~~~~~~~~~ __cfloat128 from /usr/local/include/ImageMagick-6/Magick++.h:9, from /users/Experiments/SDx_workspace/ImageMagick_Zynq/src/Magick++/tests/appendImages.cpp:8: /usr/include/stdlib.h:152:8: error: ‘_Float128’ does not name a type; did you mean ‘_Float32x’? extern _Float128 strtof128 (const char *__restrict __nptr, ^~~~~~~~~ _Float32x /usr/include/stdlib.h:245:4: error: ‘_Float128’ has not been declared _Float128 __f) ^~~~~~~~~
...

I tried some of the solutions of the following link, but it did not work.

https://forums.xilinx.com/t5/Vivado-High-Level-Synthesis-HLS/Vivado-HLS-2018-1-Simulation-CoSimulation-not-working-on-Linux/m-p/860324#M12846

https://forums.xilinx.com/t5/Vivado-High-Level-Synthesis-HLS/C-RTL-cosimulation-error/m-p/911761#M14698

Is there any workaround to support _Float128 in SDSoC?

Thanks

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
333 Views
Registered: ‎08-20-2018

Re: _Float128 support in SDSoC

Hi @immwn

Use below option if the default behavior results in target dependent compilation errors.

add "-hls-target 1"  to sds++ compiler->inferred options->software platform

When set to 1, in Vivado HLS add_files commands, insert -targetand Arm GNU toolchain include options in addition to -m32 or -m64 options.

When set to 0, insert -m32 or -m64options.

https://www.xilinx.com/html_docs/xilinx2018_2/sdsoc_doc/hardware-function-options-icf1504034400618.html

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Highlighted
Adventurer
Adventurer
294 Views
Registered: ‎08-27-2018

Re: _Float128 support in SDSoC

Hi @nutang ,

Thanks for your reply. I tried it but it did not work. I am gettign the same error.

I am basically trying to build and run this application on Arm processor only (no hardware function). Next I will select HW functions after profiling.

Waiting for your reply.

Thanks

0 Kudos