cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
arishsu
Newbie
Newbie
1,699 Views
Registered: ‎07-23-2018

OpenCL host code Vivado HLS

Hi all,

I am actually working on neural network implementation on Zynq FPGA and I am going with Vivado HLS using OpenCL. I am totally new to OpenCL and a bit confused with how to write host code for the OpenCL kernel. Can anyone help me with this or suggest any resources?

Thanks in advance

0 Kudos
1 Reply
scampbell
Moderator
Moderator
1,622 Views
Registered: ‎10-04-2011

Hello @arishsu,

 

The standalone HLS tool itself does not support the use of OpenCL sources directly. The SDx tools have additional features which allow them to support OpenCL which in turn is synthesized into the kernels using HLS behind the scenes. 

 

The answer to your question depends on what you are doing. If building an embedded system with a co-processor IP in the fabric, then you would want SDSoc. If using a FPGA accelerator board, and accelerating a function used by the host computer, then you would use SDAccel. These tools have tutorials to follow that would answer your question. 

 

You can start here:

https://www.xilinx.com/support.html#documentation

 

And then choose: Development Tools -> Software Development -> Product (SDAccel/SDSoc) -> Tutorials to access those. 

 

OK, I hope this helps,
Scott

0 Kudos