Monday, 19 August 2013

Work sizes for completely independent calculations in OpenCL

Work sizes for completely independent calculations in OpenCL

I have a 2D matrix where I want to modify every value by applying a
function that is only dependent on the coordinates in the matrix and
values set at compile-time. Since no synchronization is necessary between
each such calculation, it seems to me like the work group size could
really be 1, and the number of work groups equal to the number of elements
in the matrix.
My question is whether this will actually yield the desired result, or
whether other forces are at play here that might make a different setting
for these values better?

No comments:

Post a Comment