fixed calling cpu kernel