handle the case where gpudata is a plain int