Is Vitis 22.2 backward compatible with old OpenCL based host code?
dj-park opened this issue · 2 comments
I recently installed Vitis 22.2 but want to use old OpenCL based host code like (https://github.com/Xilinx/Vitis-Tutorials/blob/2021.1/Getting_Started/Vitis/example/src/host.cpp).
I can confirm that the host code with XRT native API (https://github.com/Xilinx/Vitis-Tutorials/blob/2022.2/Getting_Started/Vitis/example/src/host.cpp) works properly with Vitis 22.2. But when I use OpenCL based host code, it doesn't properly returns platforms, meaning that platform.sizes()
is zero, in this loop.
I can confirm that in Vitis 22.1 version, I didn't have this issue. Is there a quick fix for this?
Have you looked at the 22.2 XRT OpenCL API to see if anything changed between 22.1 and 22.2?
https://xilinx.github.io/XRT/2022.2/html/index.html
Or maybe look at some of the 2022.2 Vitis_Accel_Examples:
https://github.com/Xilinx/Vitis_Accel_Examples/blob/2022.2/cpp_kernels/gmem_2banks/src/host.cpp