MCPcopy Create free account
hub / github.com/apache/arrow / test_IPC

Function test_IPC

python/pyarrow/tests/test_cuda.py:814–824  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

812@cuda_ipc
813@pytest.mark.parametrize("size", [0, 1, 1000])
814def test_IPC(size):
815 import multiprocessing
816 ctx = multiprocessing.get_context('spawn')
817 arr, cbuf = make_random_buffer(size=size, target='device')
818 ipc_handle = cbuf.export_for_ipc()
819 handle_buffer = ipc_handle.serialize()
820 p = ctx.Process(target=other_process_for_test_IPC,
821 args=(handle_buffer, arr))
822 p.start()
823 p.join()
824 assert p.exitcode == 0
825
826
827def test_copy_to():

Callers

nothing calls this directly

Calls 4

make_random_bufferFunction · 0.70
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected