I am having trouble using functions from HLS Math library in my hardware accellerated functions in SDSoC in 2018.2 (on Windows 10).
I am including the header file for the HLS Math library as:
And, I am trying to call the functions in my hardware accelerated function as:
float umag = hls::sqrt(umagsq);
float c = cos(theta);
However, the getting the following error during build:
undefined reference to `hls::sqrt(float)'
undefined reference to `hls::cos(float)'
I am probably missing something. Any help will be appreciated.
Can you find the hls::math library in your project include dictionary?
From the user guide, hls::sqrt(float) and hls::cos(float) are supported in the hls math library.
**~ Got a minute? Answer our Vitis HLS survey here! ~**