Repository navigation
Description
Type of Bug
Runtime Error / test failure
Component
cuda.core
Describe the bug
TestIpcPoolImportWithoutLocationQuery.test_import_without_location_query[DeviceMR], added by #3516 (edf1b31aeb2), fails on the nightly ARM64 dual-L4 runners with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED, in both Python 3.14 and free-threaded 3.14t.
The test disables the pool-location query, then assumes that importing a device pool through PinnedMemoryResource must succeed. That assumption depends on the GPU peer-access topology: the pinned-resource initialization grants access to every supporting GPU, but this handle actually refers to device memory. Granting the other L4 access therefore requires peer access, which these runners do not support.
How to Reproduce
Using the CUDA 13 build from edf1b31aeb2 on a dual-GPU system without peer access, run the existing test from cuda_core/:
pytest -v 'tests/memory_ipc/test_ipc_pool_kind.py::TestIpcPoolImportWithoutLocationQuery::test_import_without_location_query[DeviceMR]'Observed in CI logs; a separate local reproduction has not been run.
The failing path is:
- The parent exports a
DeviceMemoryResourcepool. - The child replaces
_memory_pool.driver_versionwithlambda: (13, 1, 0), disabling the new pool-kind check. - It calls
PinnedMemoryResource.from_allocation_handle()with the device pool's raw handle, expecting success. _PMR_init_importedcalls_PMR_grant_device_access, which grants read/write access to every device supporting host NUMA pools.cuMemPoolSetAccessfails withCUDA_ERROR_PEER_ACCESS_UNSUPPORTED; the parent reportsAssertionError: child exited with 1.
Source references at the failing revision:
The all-device access grant on imported pinned pools was introduced by #3509. The new compatibility test in #3516 exposes it with a deliberately mismatched device-pool handle. Correct-class imports and the explicit wrong-class rejection tests pass on the same runners.
Expected behavior
The compatibility test should verify that correct-class imports work when the location query is unavailable. Absence of an explicit pool-kind check does not guarantee that a wrong-class import succeeds: subsequent initialization can legitimately fail on unsupported topology. Avoid requiring success for that invalid import, while retaining coverage of correct-class imports and kind rejection when the query is available.
Failure timeline and CI evidence
- Last passing nightly: run 44855457766, started November 20, 2026 at 9:21 p.m. ET (November 21 UTC). The new test was not present yet.
- fix(cuda.core): reject importing a memory pool as the other resource class #3516 merged November 20, 2026 at 11:05 p.m. ET.
- First failing nightly: run 44975820291, Python 3.14, started November 21, 2026 at 9:22 p.m. ET (November 22 UTC).
- Same run, Python 3.14t fails with the same CUDA error.
- Still failing in run 45100025878.
System information
- Linux aarch64, Ubuntu 24.04 CI container; two NVIDIA L4 GPUs without GPU peer access.
- CUDA Toolkit 13.5.0; NVIDIA driver 595.99.02 (unchanged between the passing and failing runs; nvidia-smi reports CUDA 13.2).
- Python 3.14.10 and the 3.14t matrix variant; pytest 9.1.0.
- cuda-core
1.3.1.dev54+gedf1b31ae, from the main-branch CI wheels. - The linked job logs contain the full environment and traceback. Other peer-access tests correctly skip with
Test requires GPUs with peer access.
Activity
test(cuda.core): do not require a wrong-class pool import to succeed …