def from_record_like(rec, stream=0, gpu_data=None):
    "Create a DeviceRecord object that is like rec."
    return DeviceRecord(rec.dtype, stream=stream, gpu_data=gpu_data)
Create a DeviceRecord object that is like rec.
numba/cuda/cudadrv/devicearray.py