def serialize_ipc_handle_test(handle, result_queue):

    def the_work():
        dtype = np.dtype(np.intp)
        darr = handle.open_array(cuda.current_context(), shape=(handle.size // dtype.itemsize), dtype=dtype)
        arr = darr.copy_to_host()
        handle.close()
        return arr
    core_ipc_handle_test(the_work, result_queue)
def serialize_ipc_handle_test(handle, result_queue):

    def the_work():
        dtype = np.dtype(np.intp)
        darr = handle.open_array(cuda.current_context(), shape=(handle.size // dtype.itemsize), dtype=dtype)
        arr = darr.copy_to_host()
        handle.close()
        return arr
    core_ipc_handle_test(the_work, result_queue)