add batch computation for non compression cuda function.