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: 
Highlighted
Explorer
Explorer
128 Views
Registered: ‎06-14-2018

Using 512 bit length data transfer with OpenCL

Hi,

I tried to customize the OpenCL Sobel example to use the 512 bit length data transfer, but I ran into this error:

"AP data type can only be used in C++"

Is it possible to do it with another method ?

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
122 Views
Registered: ‎06-20-2018

Re: Using 512 bit length data transfer with OpenCL

Hi @xil_tour ,

There are two ways to address this problem:

1. The problem can be solved by having a structure containing an array of values and applying pragma HLS DATAPACK.

2. Reference Example: https://github.com/Xilinx/SDAccel_Examples/tree/master/getting_started/kernel_to_gmem/wide_mem_rw_ocl/

Regards,
Rajat Sarkari
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if the information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

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

Re: Using 512 bit length data transfer with OpenCL

Oh, I thought pragmas were reserved to C++ ?

0 Kudos