DRY -- this is the same as the code above, right? If so, might be good to refactor it into a single method, like `def _check_activate_ocl(obj, ctx)`