05-02-2019 03:02 AM
Hi,
I would like to check if a certain code uses burst transfers (Xilinx edge detection example, for instance).
It's easy to see that in C/C++ code because of the pragmas, however I can't see that clearly in OpenCL code.
Could it be :
__attribute__((xcl_pipeline_loop(1)))
or
__attribute__((xcl_loop_tripcount(c_size*c_size, c_size*c_size)))
or some combination ?
05-02-2019 04:34 AM
Hi @xil_tour ,
If you are using OpenCL kernel, then you need to add "param:compiler.interfaceWrBurstLen" and "param:compiler.interfaceRdBurstLen" to CLFLAGS.
please check below example for reference:
https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/kernel_to_gmem/burst_rw_ocl
If C kernel is used, then "max_read_burst_length" ,"max_write_burst_length" should be added to m_axi interface in the kernel.
please check below C kernel example:
https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/kernel_to_gmem/burst_rw_c
Regards,
Vishnu
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
05-02-2019 04:34 AM
Hi @xil_tour ,
If you are using OpenCL kernel, then you need to add "param:compiler.interfaceWrBurstLen" and "param:compiler.interfaceRdBurstLen" to CLFLAGS.
please check below example for reference:
https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/kernel_to_gmem/burst_rw_ocl
If C kernel is used, then "max_read_burst_length" ,"max_write_burst_length" should be added to m_axi interface in the kernel.
please check below C kernel example:
https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/kernel_to_gmem/burst_rw_c
Regards,
Vishnu
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
05-03-2019 01:01 AM
Ok, thanks for your time.