Wrapped clWaitForEvents with checkOclErrors