- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
__kernel void ADD_TO_ARRAY ( __global const short* restrict k_din,
__global const short* restrict k_din2,
__global short * restrict k_out )
{
for(unsigned i=0; i<20; i++)
k_dout[i] = k_din[i] * k_din2[i];
}
0.5 DSP is correctly detected for a multiplier for Arria 10.
All examples I have seen show a for loop for the block of data processing. Is it possible to process sample by sample?
OpenCl does not allow static int function scope.
I would like to process every N samples to produce a result.
Can I please get a sample code?
- Tags:
- OpenCL™
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi FHuss10,
Do you mean parallel execution of each loop iteration?
You can use #pargma unroll for the loop.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page