Skip to content

test(cuda.core): do not require a wrong-class pool import to succeed without the location query - #3542

Merged
juenglin merged 1 commit into
NVIDIA:mainfrom
juenglin:fix-3540-pool-kind-fallback-test
Nov 23, 2026
Merged

juenglin merged 1 commit into
NVIDIA:mainfrom
juenglin:fix-3540-pool-kind-fallback-test

Conversation

@juenglin

@juenglin juenglin commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

closes #3540

The fallback test added by #3516 imports a device pool with PinnedMemoryResource and expects success once the pool kind check is off. That fails with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED on GPUs without peer access, because the pinned import grants every device access to a pool that lives on one GPU. See #3540 for the analysis.

The test now checks only that importing with the exporter's class works without the location query. The wrong-class rejection on a 13.2+ driver is still covered by TestIpcPoolKind. Test-only change.

The failure needs a dual-GPU machine without peer access, so it is confirmed only by a run on the nightly dual-L4 runners.

Checklist

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

…without the location query (NVIDIA#3540)

The fallback test for drivers before 13.2 imported the pool with the other
class and expected success. Without the pool kind check, a pinned import of a
device pool grants every device access to a pool that lives on one GPU, which
needs peer access and fails with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED on
dual-GPU machines without it. The test now checks only that importing with the
exporter's class works without the location query.
@juenglin juenglin added this to the cuda.core 1.4.0 milestone Nov 23, 2026
@juenglin juenglin added test Improvements or additions to tests cuda.core Everything related to the cuda.core module labels Nov 23, 2026
@juenglin juenglin self-assigned this Nov 23, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 23, 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

Copy link
Copy Markdown
Contributor Author

/ok to test df05b17

@juenglin
juenglin marked this pull request as ready for review November 23, 2026 22:00
@juenglin
juenglin enabled auto-merge (squash) November 23, 2026 22:02
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Updated test coverage to reflect that drivers before version 13.2 allow imports with a matching resource class without checking the pool kind.

The compatibility test no longer attempts a wrong-class import when the pool-kind query is unavailable. Its class docstring now states that matching-class imports work in this case.

Changes: IPC pool compatibility

Layer / File(s) Summary
Update the compatibility test
cuda_core/tests/memory_ipc/test_ipc_pool_kind.py
The test replaces the wrong-class import attempt with a comment about topology-dependent initialization failures. The class docstring now describes matching-class imports without a pool-kind check.

Assessment against linked issues

Objective Addressed Explanation
Avoid requiring a wrong-class import to succeed when the pool-kind query is unavailable, while retaining the correct-class compatibility test [#3540] ✅

Possibly related PRs

  • NVIDIA/cuda-python#3516: Adds the pool-kind compatibility test and the location-based class check that this change updates.
  • NVIDIA/cuda-python#3509: Adds device-access grants during pinned-pool import, the initialization path cited in the test comment.

Suggested reviewers: andy-jost

Change: Other · Severity of issue fixed: Low

Merge Risk: Minimal · up to df05b

This change narrows a compatibility test so it no longer fails on systems without peer access. Production behavior is unchanged, and the merge risk is minimal.

Security architecture risk: Minimal · up to df05b

The test still verifies that a pool can be imported with the exporter’s resource class when the location query is unavailable. It no longer requires a mismatched-class import to succeed. Production behavior is unchanged.

- [ ] 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 f605e6f and df05b17.

Files selected for processing: 1

  • cuda_core/tests/memory_ipc/test_ipc_pool_kind.py

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

@jpascucci-nv jpascucci-nv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex agrees this fixes the failure.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor
Doc Preview CI
Preview removed because the pull request was closed or merged.

@juenglin
juenglin merged commit b758ba3 into NVIDIA:main Nov 23, 2026
231 of 233 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 24, 2026
Removed preview folders for the following PRs:
- PR #3486
- PR #3513
- PR #3523
- PR #3531
- PR #3536
- PR #3542
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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]: Pool-kind compatibility test fails on dual L4 with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED

2 participants