count memory usage correctly for ell hybrid kernel