fix a crash on CPU OCL for some specified image sizes