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: 
Visitor olevr
Visitor
282 Views
Registered: ‎11-08-2018

How to run OpenCL on zcu104

Can someone please tell me step by step how to build and run a simple OpenCL kernel on the PL of the ZCU104 Ultrascale+?  I am new to FPGAs and I can't find an end-to-end tutorial on this subject.  Please walk me through it!

Thanks!

0 Kudos
9 Replies
Xilinx Employee
Xilinx Employee
252 Views
Registered: ‎07-11-2019

Re: How to run OpenCL on zcu104

Hello @olevr 

I have provided a link to the Xilinx Github, specifically an example project demonstrating Dataflow functionality in OpenCL and a gettign started tutorial. I have also provided a link to UG1027, which will have example projects and reference information on SDSoC and OpenCL.

Xilinx Github Example Project: https://github.com/Xilinx/SDSoC_Examples/tree/master/ocl/getting_started/dataflow_func_ocl

Xilinx Github Getting Started Tutorial: https://github.com/Xilinx/SDSoC-Tutorials

UG1027: https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1027-sdsoc-user-guide.pdf

I hope this helps! 

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------

0 Kudos
Visitor olevr
Visitor
245 Views
Registered: ‎11-08-2018

Re: How to run OpenCL on zcu104

Hi Timothy,

Thanks for the quick reponse.  I will dig into the resources you suggested.  One more question though:  Should I be using SDx 2019.1 or the new Vitis 2019.2 as my SDK?

0 Kudos
Explorer
Explorer
230 Views
Registered: ‎10-21-2015

Re: How to run OpenCL on zcu104

Hi 

The vitis platform for zcu104 will be released soon

If you are not waiting for it , you can build the platform refering to https://github.com/Xilinx/XRT/tree/master/src/platform/zcu104_base

Xilinx Employee
Xilinx Employee
229 Views
Registered: ‎07-11-2019

Re: How to run OpenCL on zcu104

@olevr 

Of course, I am more than happy to help. 

Those are going to be very helpful in starting to use SDSoC. 

To answer your second question, the tutorials I sent to you before are all for Vivado SDSoC. If you want to use Vitis, I will also attach tutorials on creating OpenCL kernels in Vitis! 

Xilinx Github Vitis OpenCL Kernel: https://github.com/Xilinx/Vitis-Tutorials

-------------------------------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------------------------------

 

0 Kudos
Visitor olevr
Visitor
142 Views
Registered: ‎11-08-2018

Re: How to run OpenCL on zcu104

Hi Timothy,

The quick start guide that came with my ZCU104 Ultrascale+ evaluation kit tells me that after testing the board and acquiring the licence I should follow the instructions at https://github.com/Xilinx/reVISION-Getting-Started-Guide.  The latest version of the reVISION stack is 2018.3 and it says that I need to download the SDSoC™ Development Environment version 2018.3.

 

Does this mean that I cannot use the SDx Development Environment 2019.1 I currently have installed on my machine?  Or should I not be starting with the reVISION-Getting-Started-Guide in the first place?

0 Kudos
Visitor olevr
Visitor
137 Views
Registered: ‎11-08-2018

Re: How to run OpenCL on zcu104

Also, I can't find the actual download for the SDSoC Development Environment version 2018.3 from the link SDSoC™ Development Environment.  Can you point me to it?

0 Kudos
Visitor olevr
Visitor
116 Views
Registered: ‎11-08-2018

Re: How to run OpenCL on zcu104

Hi again Timothy,

Please ignore the last two posts.  I've decided I only want to pursue running OpenCL on the zcu104 with the latest development environment: Vitis 2019.2.  I have tried running OpenCL on the zcu104 on previous versions of the SDSoC DE and have been unsuccessful.  I'm hoping that with Vitis 2019.2 I will finally have some success.

So to be clear.  My goal is to use the latest Vitis Development Environment to build and run a simple OpenCL kernel on the PL fabric of the ZCU104, where the host code is run from Petalinux booted from the SD card.

Before I can begin with the Vitis Tutorials I need the zcu104_base platform (referred to here).  When will this be made available?

Also, I am running Ubuntu 18.04.3 LTS.  When I start the Vitis 2019.2 installer, it tells me that only Ubuntu 18.04.1 LTS and 18.01.2 LTS are supported.  Should I revert my Ubuntu to 18.04.2 LTS?

Thanks a lot for your help.

0 Kudos
Xilinx Employee
Xilinx Employee
111 Views
Registered: ‎08-20-2018

Re: How to run OpenCL on zcu104

Hello @olevr 

 

One big change from 2018.2 to 2018.3 was the removal of OpenCL platforms.

So, if you want to work on opencl, you need to use 2018.2

You can download SDSoC 2018.2 at 

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/vitis/archive-sdsoc.html

Here are some examples

https://github.com/Xilinx/SDSoC_Examples/tree/2018.2/ocl

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
Xilinx Employee
Xilinx Employee
109 Views
Registered: ‎08-20-2018

Re: How to run OpenCL on zcu104

Hi @olevr 

Okay.

If you want to try with Vitis 2019.2, it is required to clone XRT which contains zcu104_base

https://github.com/Xilinx/XRT/tree/master/src/platform

Please go through XRT docu to do setup and reply to us in case of questions

You can continue with your current Ubuntu version. 

In case you face issue with installation or build, then you can revert.

 

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