helpers/cuda: fixed some inconsistent code in copyBuffer