________________________ TestIpcMemory.test_ipc_handle _________________________
[gw4] linux -- Python 3.10.19 /home/runner/_work/numba-cuda/numba-cuda/.pixi/envs/cu-12-0-py310/bin/python3.10
self = <numba.cuda.tests.cudapy.test_ipc.TestIpcMemory testMethod=test_ipc_handle>
def test_ipc_handle(self):
# prepare data for IPC
arr = np.arange(10, dtype=np.intp)
devarr = cuda.to_device(arr)
# create IPC handle
ctx = cuda.current_context()
ipch = ctx.get_ipc_handle(devarr.gpu_data)
# manually prepare for serialization as bytes
handle_bytes = ipch.handle.reserved
size = ipch.size
# spawn new process for testing
fut = self.exe.submit(
base_ipc_handle_test, handle_bytes, size, parent_pid=os.getpid()
)
out = fut.result(timeout=FUTURE_TIMEOUT)
> np.testing.assert_equal(arr, out)
numba_cuda/numba/cuda/tests/cudapy/test_ipc.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.pixi/envs/cu-12-0-py310/lib/python3.10/site-packages/numpy/_utils/__init__.py:85: in wrapper
return fun(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
args = (<built-in function eq>, array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]))
kwds = {'err_msg': '', 'header': 'Arrays are not equal', 'strict': False, 'verbose': True}
@wraps(func)
def inner(*args, **kwds):
with self._recreate_cm():
> return func(*args, **kwds)
E AssertionError:
E Arrays are not equal
E
E Mismatched elements: 9 / 10 (90%)
E Max absolute difference among violations: 9
E Max relative difference among violations: inf
E ACTUAL: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
E DESIRED: array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0])
.pixi/envs/cu-12-0-py310/lib/python3.10/contextlib.py:79: AssertionError
https://github.com/NVIDIA/numba-cuda/actions/runs/24433250250/job/71381978923?pr=858#step:7:4363