opencl: don't use the static qualifier in checkerboard

... and remove an unused variable