Forum Discussion
FHuss10
New Contributor
6 years agoHow can I get the kernel code to implement a sample by sample processing instead of an array?
__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] * ...
GRN
Occasional Contributor
6 years agoHi FHuss10,
Do you mean parallel execution of each loop iteration?
You can use #pargma unroll for the loop.