Skip to content

test(cuda.core): pick only host NUMA nodes in the pool-kind numa_id test - #3661

Open
juenglin wants to merge 3 commits into
NVIDIA:mainfrom
juenglin:fix-3650-numa-helper
Open

juenglin wants to merge 3 commits into
NVIDIA:mainfrom
juenglin:fix-3650-numa-helper

Conversation

@juenglin

Copy link
Copy Markdown
Contributor

Description

closes #3650

test_imported_pinned_resource_reports_numa_id (added by #3516) picked the first NUMA node above 0 that has memory. On Grace systems (GH200, GB300) that is GPU memory, and cuMemPoolCreate rejects it as a host NUMA location, so the test failed with CUDA_ERROR_INVALID_VALUE in the nightly runs. The constructor is unchanged and fails the same way without #3516. Only the test's choice of node was wrong.

The helper now returns the first node above 0 that has both memory and CPUs, and the test skips when there is none. Hosts with host memory only on CPU-less nodes (CXL expanders, for example) skip the test, which loses coverage but cannot produce a false failure. New tests run the helper against fake sysfs directories for a GH200 topology, a GH200 with MIG nodes, a two-socket host, and a missing sysfs.

Not tested on a Grace machine. The fake topologies are based on NVIDIA's Grace documentation, and the nightly GH200 and GB300 jobs will confirm that node 1 has no CPUs.

Checklist

  • I have read the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

test_imported_pinned_resource_reports_numa_id chose the first nonzero NUMA node
with memory. On Grace systems (GH200, GB300) that is GPU memory, which
cuMemPoolCreate rejects as a host NUMA location, so the test failed with
CUDA_ERROR_INVALID_VALUE. Require the node to have CPUs as well, and skip when
none qualifies.

Closes NVIDIA#3650.
@juenglin juenglin added this to the cuda.core 1.4.0 milestone Nov 30, 2026
@juenglin juenglin added bug Something isn't working test Improvements or additions to tests cuda.core Everything related to the cuda.core module labels Nov 30, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@juenglin juenglin self-assigned this Nov 30, 2026
@juenglin

Copy link
Copy Markdown
Contributor Author

/ok to test 0ee32c1

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Expanded coverage for selecting NUMA nodes that have both memory and CPUs, excluding memory-only nodes from selection.
    • Added checks for missing system information and updated conditions for running pinned-resource tests.
    • Added validation for parsing node lists, including cases where CPU and memory availability differ, and for handling unavailable system information.

The NUMA test helper now selects the lowest nonzero node listed in both has_memory and has_cpu. The imported-resource test skips if no eligible node exists. New tests cover node-list selection and missing sysfs files.

Changes: NUMA Test Setup

Layer / File(s) Summary
Select and use an eligible host node
cuda_core/tests/memory_ipc/test_ipc_pool_kind.py, lychee.toml
The helper intersects memory and CPU node lists. The imported-resource test skips when no eligible nonzero node exists. Tests cover list parsing, CPU-less nodes, and missing sysfs files. lychee.toml adds a temporary comment about running full CI for validation.

Assessment against linked issues

Objective Addressed Explanation
Select a nonzero host NUMA node rather than a memory-only node, and skip when none is eligible [#3650]. ✅

Possibly related issues

Suggested reviewers: rwgk

Change: Other · Severity of issue fixed: Medium

Merge Risk: Minimal · previous review 6e1ea

This change only narrows which hosts run an imported-resource NUMA test and adds helper tests. Production behavior is unchanged. Remember to drop the temporary lychee.toml comment commit before merging.

Architecture risk: Low · up to 6e1ea

The change affects 2 source areas.

Changed areas: cuda_core, lychee.toml

Review details

Systems and components

  • observed — 1 changed file mapped to cuda_core.
  • observed — 1 changed file mapped to lychee.toml.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0ee32c1 and 6e1eaf7.

Files selected for processing: 1

  • lychee.toml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor

@juenglin

Copy link
Copy Markdown
Contributor Author

/ok to test 89f393b

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.core Everything related to the cuda.core module test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant