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: 
Observer zxbzsb
Observer
266 Views
Registered: ‎04-20-2019

SDSoc HLS

I encountered a problem when using SDSoc. My project can compile successfully with only software functions. However, after I specified the hardware function, there was a problem with the compilation.

1.png

The pthread.h file is in the following directory and I can find it. Please help me!3.png

0 Kudos
3 Replies
Scholar u4223374
Scholar
261 Views
Registered: ‎04-26-2015

Re: SDSoc HLS

I expect that it's because HLS doesn't support the standard C headers - anything that you're moving to hardware will have to be stripped of anything that relies on system calls.

0 Kudos
Observer zxbzsb
Observer
253 Views
Registered: ‎04-20-2019

Re: SDSoc HLS

Thank you for your reply:
I should write the hardware function in a single .c file, and the .c file does not contain the system call.
Do you think so?
0 Kudos
Highlighted
Moderator
Moderator
147 Views
Registered: ‎08-20-2018

Re: SDSoc HLS

Hi @zxbzsb 

You need to do dynamic linking of the pthread library. Navigate to C/C++ build settings->C/C++ Build-> Settings->SDS++ Linker->Miscellaneous->Linker Flags

add, 

-rpath-link=<library path> and retry

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos