02-02-2021 08:35 AM
All the examples on the Vitis_Accel_Examples repository uses std::vector on host code, and store these in cl::buffer and then on the kernel they are stored in arrays with #pragma HLS array partition.
Is it possible to std::vector in kernel part too ? Is there any pragma to partition vectors ?
Thank you
02-03-2021 01:10 AM
Hi @keanfj421ss ,
We do have the vector support in kernel code which was supported in 2020.2 release.
The Vitis™ HLS library provides the reference implementation for the hls::vector<T, N> type which represent a single-instruction multiple-data (SIMD) vector of N elements of type T:
For more details please refer the following UG1399 document :
https://www.xilinx.com/support/documentation/sw_manuals/xilinx2020_2/ug1399-vitis-hls.pdf
Thanks,
Vishnu
-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
02-03-2021 04:04 AM
Thank you for the answer,
one problem I have both Vitis 2020.1 and Vitis 2020.2 versions but on both of them it says error the hls_vector.h not found to include.
Do I need to download this file ? I couldn't find it on google search