Skip to content

[BUG]: NUMA pool-kind test added by #3516 fails on GH200/GB300 with CUDA_ERROR_INVALID_VALUE #3650

Done

Description

@jpascucci-nv

Type of bug

Test failure / invalid test setup

Component

cuda.core

Summary

TestIpcPoolKind.test_imported_pinned_resource_reports_numa_id, introduced by #3516 (edf1b31aeb2f70830604cf237a6760a93f1d0fbf), fails on both the GH200 and GB300 nightly runners with CUDA_ERROR_INVALID_VALUE.

The failure occurs while creating the exporter's pinned-memory pool, before the child process or IPC import is reached. The test chooses numa_id=1 on both runners.

Current CI evidence

In scheduled nightly run 46340711468:

Both fail at:

mr = PinnedMemoryResource(
    PinnedMemoryResourceOptions(max_size=POOL_SIZE, ipc_enabled=True, numa_id=numa_id)
)
# numa_id = 1
# CUDAError: CUDA_ERROR_INVALID_VALUE

The traceback goes through _PMR_init -> MP_init_create_pool -> create_mempool_handle / cuMemPoolCreate. The existing tests test_pinned_mr_numa_id_default_with_ipc and test_pinned_mr_numa_id_explicit, which use the device's host NUMA node, pass on the same runners.

Likely cause

_nonzero_numa_node_with_memory reads /sys/devices/system/node/has_memory and returns the first node greater than zero. It assumes every memory-bearing NUMA node is a host-memory node.

That assumption does not hold on Grace systems, where GPU memory can also appear as a NUMA node. NVIDIA's Grace topology documentation shows a GH200 with CPU memory at node 0 and GPU memory at node 1. The cuMemPoolCreate contract requires a host-memory node ID for CU_MEM_LOCATION_TYPE_HOST_NUMA.

The helper therefore can select GPU memory for a host-pinned pool. The logs confirm node 1 is selected and rejected on both runners; they do not include the full NUMA topology, so identifying node 1 specifically as GPU memory on these machines remains an inference to confirm on the runners.

Failure timeline

Reproduction

On an affected runner, using the CUDA 13 build and its test environment, run from cuda_core/:

pytest -v 'tests/memory_ipc/test_ipc_pool_kind.py::TestIpcPoolKind::test_imported_pinned_resource_reports_numa_id'

To confirm the topology, inspect numactl -H, /sys/devices/system/node/has_memory, and the CUDA device's properties.host_numa_id and properties.numa_id.

This diagnosis was checked against CI logs and the introducing commit. A separate local GPU reproduction has not been run. The helper was exercised in isolation with a mocked has_memory value of 0-1; it selects node 1 without checking whether it is host memory.

Expected behavior / suggested fix

Choose a validated host NUMA node greater than zero, rather than any nonzero node with memory. If the runner has no eligible nonzero host-memory node, skip with a specific reason: node 0 cannot expose the original imported-numa_id == 0 bug.

Add a focused helper regression test covering a topology with host memory at node 0 and GPU memory at node 1. Confirm the corrected test passes or legitimately skips in the GH200 and GB300 nightly jobs while preserving coverage on hosts with a suitable nonzero host NUMA node.

Environment

  • Linux aarch64; NVIDIA GH200 480GB and NVIDIA GB300 nightly runners.
  • Python 3.13 and 3.14 respectively; CUDA Toolkit 13.5.0, local-CTK configuration.
  • NVIDIA driver 595.99.02 (nvidia-smi reports CUDA 13.2).
  • Failing run's main-branch revision: 1c9ed66015123d5b3e926b08b27abb485c25adb6.
  • Linked job logs contain the full package environment and traceback.

Related: #3516 introduced the test; #3508 tracks the separate imported NUMA-property behavior; #3481 is the general scheduled-nightly CI health tracker.

Activity

  1. added
    bug
    on Nov 30, 2026
  2. added a commit that references this issue on Nov 30, 2026
    1548fe4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions