SANITY_CHECK should contains same parameter names: if you wrote `SANITY_CHECK(foreground)` in plain implementation, then you should wrote same in ocl implementation `SANITY_CHECK(foreground)`. Framework stores name of passed variable, and "foreground_h" is not valid here.