(size)
| 812 | @cuda_ipc |
| 813 | @pytest.mark.parametrize("size", [0, 1, 1000]) |
| 814 | def 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 | |
| 827 | def test_copy_to(): |
nothing calls this directly
no test coverage detected