This content has been marked as final.
Show 4 replies

Re: data parallel program using opencl
wayne_static Nov 22, 2013 4:10 AM (in response to arunad)Hello,
Your code makes use of kernel file "parallel.cl" but you haven't attached it. Could you please attach it too?

Re: data parallel program using opencl
arunad Nov 22, 2013 10:26 AM (in response to wayne_static)Hello,
Thanks for the reply and there was silly mistake now me getting output and here is kernel code.
_kernel void dataParallel(__global float* A, __global float* B, __global float* C)
{
int base = 4*get_global_id(0);
C[base+0] = A[base+0] + B[base+0];
C[base+1] = A[base+1]  B[base+1];
C[base+2] = A[base+2] * B[base+2];
C[base+3] = A[base+3] / B[base+3];
}

Re: data parallel program using opencl
wayne_static Nov 22, 2013 2:00 PM (in response to arunad)Okay no problem. So does it mean your problem is now solved?

Re: data parallel program using opencl
arunad Nov 23, 2013 12:16 AM (in response to wayne_static)Thanks a lot .Hope me you'll help in future if problems incur


