cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
403 Views
Registered: ‎06-14-2018

How to check if burst transfers are used in OpenCL code ?

Jump to solution

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 ?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
389 Views
Registered: ‎06-04-2018

Re: How to check if burst transfers are used in OpenCL code ?

Jump to solution

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.
----------------------------------------------------------------------------------------------

View solution in original post

2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
390 Views
Registered: ‎06-04-2018

Re: How to check if burst transfers are used in OpenCL code ?

Jump to solution

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.
----------------------------------------------------------------------------------------------

View solution in original post

Explorer
Explorer
362 Views
Registered: ‎06-14-2018

Re: How to check if burst transfers are used in OpenCL code ?

Jump to solution

Ok, thanks for your time.

0 Kudos