def _workaround_for_datetime(obj):
    """Workaround for numpy#4983: buffer protocol doesn't support
    datetime64 or timedelta64.
    """
    if _is_datetime_dtype(obj):
        obj = obj.view(np.int64)
    return obj
Workaround for numpy#4983: buffer protocol doesn't support
    datetime64 or timedelta64.
    
numba/cuda/cudadrv/driver.py