Is it necessary : if (get_global_id(0) >= workAmount) return;

Discussion created by spectral on May 19, 2011
Latest reply on May 23, 2011 by rick.weber

It can be a stupid question, but is it necessary to put the following lines in the begining of a kernel ?

If I request the "exact" quantity of work... I don't need this ?



if (get_global_id(0) >= workAmount) return;