def copy_to_host(self, ary=None, stream=0):
        if ary is None:
            ary = np.empty_like(self._ary)
        # NOTE: np.copyto() introduced in Numpy 1.7
        try:
            np.copyto(ary, self._ary)
        except __HOLE__:
            ary[:] = self._ary
        return ary
dataset/ETHPy150Open numba/numba/numba/cuda/simulator/array.py/FakeCUDAArray.copy_to_host