Fix OpenCL warnings
Opencl: clean up memset to a general version

For some reason the previous implementation didn't compile
on mac and using gfx card as opencl target