Thanks nou,
But the goal is to have the minimum number (This greatly boost the performance of my application) ! If possible, something that can be computed for both CPU and GPU !
I don't want to hard-code this number !!! But, I will already be happy if I can have something like ;
int GetMinWorkSize()
{
int unitsCount = clGetInfo(Units); // Does this information is available
int rule = 64 * 4;
return rule * unitsCount;
}
Maybe I have also to play with the kind of device (CPU or GPU) and maybe other informations can help ?
Thx