My task is to compute the sum on an array.
What I plan to do is to perform a partial sun using OpenCL so that the kernel returns a smaller array of the size corresponding to the number of work-items. And then to use OpenMP to sum up this somewhat little array.
Now, I'm wondering if I can use OpenMP in the host part of my OpenCL code. If yes, can I use OpenCL type (say cl_float4) with OpenMP.
I thank you in advance,
Éric.
cl_float4
basicly represents an array of 4 float
values with proper memory alignement for GPUs. However, it can be used in host code without any problems.