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: 
Contributor
Contributor
347 Views
Registered: ‎09-17-2018

Vitis integrated SDsoc functionality

Hello!

I have recently downloaded Vitis and I have created XST platform with interfaces (like in sdsoc). And now Im stuck. How can I Make Vititis to accelerate function like in SDSoC because it seems that it doesnt have that option implemented (I couldn't find any way to accelerate SW function)?

Thanks for feedback

PS.  I have found that vitis is creating non-accelerable project so the real question is how can I make accelerable project?

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
258 Views
Registered: ‎01-11-2011

Re: Vitis integrated SDsoc functionality

Hi @bartokon, you may want to run through the SDSoC to Vitis Migration Guide here:

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/wzv1561825647931.html

But let us know if you still have issues with accerating the function.

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
Contributor
Contributor
222 Views
Registered: ‎09-17-2018

Re: Vitis integrated SDsoc functionality

Hello!

Thanks for reply.

I have read the information about openCL and followed the steps that you linked.

Now I'm trying to compile a basic program with openCL but another problem has occured.

I have created petalinux platform and linked my libraries, but the compilator gave me an error "/usr/include/CL/cl2.hpp:495:2: error: #error Visual studio 2013 or another C++11-supporting compiler required", I have tried adding libaries like these (screen shots) and added flag -std=c++0x but compilation have failed giving an error "cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C", also compiler gives me an error about namespaces "/usr/include/CL/cl2.hpp:677:1: error: unknown type name ‘namespace’", /usr/include/c++/7/bits/stl_vector.h:68:1: error: unknown type name ‘namespace’ and similar.

Could you tell me how can I change to compiler that supports C++11 and make it compile properly?

Thanks for support!

 

Screenshot from 2019-11-16 17-22-26.pngScreenshot from 2019-11-16 17-22-42.png

0 Kudos
Contributor
Contributor
210 Views
Registered: ‎09-17-2018

Re: Vitis integrated SDsoc functionality

I have found out that I need aarch64-linux-gnu-g++ compiler but it seems that Vitis doesn't have one included? I have changed toolchains and I couldn't find "aarch64-linux-gnu-g++" only "aarch64-linux-gnu-gcc"

On the other hand SDSoC had them included after changing toolchain to Xilinx ARM v8 GNU/Linux Toolchain.

Is there any guide how can I set up Vitis for openCL building from scratch step by step?

Thank you for your patience.

0 Kudos
Contributor
Contributor
147 Views
Registered: ‎09-17-2018

Re: Vitis integrated SDsoc functionality

I have made some progress on this matter, this fixed problems with compiler and switched to V8 Arm GNU/Linux toolchain

sudo apt-get install g++-arm-linux-gnueabihf
sudo apt-get install g++-arm-linux-gnueabi

and now after I added -lOpenCL it says "/home/bartek/HardDrive/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: cannot find -lOpenCL"

Without this -lOpenCL it gaves me an error like this "/home/bartek/HardDrive/Xilinx/Vitis/2019.2/gnu/aarch64/lin/aarch64-linux/bin/../lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: ./src/main.o: in function `cl::detail::ReferenceHandler<_cl_device_id*>::release(_cl_device_id*)':
/home/bartek/include/CL/cl2.hpp:1491: undefined reference to `clReleaseDevice'"

What should I do next to fix complitation error?

Thank you in advance for your help

 

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
115 Views
Registered: ‎01-11-2011

Re: Vitis integrated SDsoc functionality

Based on the messages, it may be the case that you don't have the required libraries installed/used.

For compilation, please check that the required switches are used for Arm, it mentions using -lxilinxopencl:

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk1307139109.html#asy1528754332783

If it doesn't work, please check the installation instructions for the initial libraries needed (it mentions OpenCL):

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk1500615452.html#igz1531201833632

Next, I would check if XRT is installed, as that also includes some libraries used for compilation:

https://www.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk1858803630.html#dhg1543555360045

Hopefully this helps get your compilation going!

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
Contributor
Contributor
56 Views
Registered: ‎09-17-2018

Re: Vitis integrated SDsoc functionality

I think that I have problem with platform (Zedboard's) not libraries...

I'm now following this tutorial (https://japan.xilinx.com/html_docs/xilinx2019_2/vitis_doc/Chunk1854106950.html#wxe1570652701297) to create working platform with petalinux and see if the problem is fixed.

0 Kudos