Inserted conversion to __local float* in kernel, for it to work for Intel, AMD, Nvidia and Mac