def base_ipc_handle_test(handle, size, result_queue):

    def the_work():
        dtype = np.dtype(np.intp)
        with cuda.open_ipc_array(handle, shape=(size // dtype.itemsize), dtype=dtype) as darr:
            return darr.copy_to_host()
    core_ipc_handle_test(the_work, result_queue)
def base_ipc_handle_test(handle, size, result_queue):

    def the_work():
        dtype = np.dtype(np.intp)
        with cuda.open_ipc_array(handle, shape=(size // dtype.itemsize), dtype=dtype) as darr:
            return darr.copy_to_host()
    core_ipc_handle_test(the_work, result_queue)