Is it possible to run the sum computation in parallel in OpenCL?
问题 I am a newbie in OpenCL. However, I understand the C/C++ basics and the OOP. My question is as follows: is it somehow possible to run the sum computation task in parallel? Is it theoretically possible? Below I will describe what I've tried to do: The task is, for example: double* values = new double[1000]; //let's pretend it has some random values inside double sum = 0.0; for(int i = 0; i < 1000; i++) { sum += values[i]; } What I tried to do in OpenCL kernel (and I feel it is wrong because