Skip to content

test(cuda.core): skip generic HOST pool regression before CUDA 13 - #2800

Open
rluo8 wants to merge 2 commits into
NVIDIA:mainfrom
rluo8:test/skip-generic-host-pool-pre-cuda13
Open

test(cuda.core): skip generic HOST pool regression before CUDA 13#2800
rluo8 wants to merge 2 commits into
NVIDIA:mainfrom
rluo8:test/skip-generic-host-pool-pre-cuda13

Conversation

@rluo8

@rluo8 rluo8 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

This is to fix internal bug 6746398. Test case test_pinned_memory_resource_rejects_unsupported_host_pool failed when using CUDA Toolkit 12.9.2 and r575 driver with error CUDA_ERROR_INVALID_VALUE.

`cuda/core/_memory/_pinned_memory_resource.pyx:115:
in cuda.core._memory._pinned_memory_resource.PinnedMemoryResource.init
cuda/core/_memory/_pinned_memory_resource.pyx:276:
in cuda.core._memory._pinned_memory_resource._PMR_init
cuda/core/_memory/_memory_pool.pyx:267:
in cuda.core._memory._memory_pool.MP_init_create_pool
cuda/core/_utils/cuda_utils.pxd:23:
in cuda.core._utils.cuda_utils.HANDLE_RETURN

E cuda.core._utils.cuda_utils.CUDAError:
E CUDA_ERROR_INVALID_VALUE: This indicates that one or more of the
E parameters passed to the API call is not within an acceptable range
E of values`

The root cause is that generic HOST pools (CU_MEM_LOCATION_TYPE_HOST, no numa_id) are not a CUDA 12 API. CUDA 12.9 cuMemPoolCreate documents that location as CUDA_ERROR_INVALID_VALUE. CUDA 13.0 is the first version that describes how to create that pool.

The fix is to skip test_pinned_memory_resource_rejects_unsupported_host_pool when driver_version() < (13, 0, 0).

@rluo8 rluo8 self-assigned this Sep 10, 2026
@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label Sep 10, 2026
@rluo8
rluo8 requested a review from Andy-Jost September 10, 2026 06:54
@github-actions

Copy link
Copy Markdown

@Andy-Jost Andy-Jost added P1 Medium priority - Should do test Improvements or additions to tests labels Sep 10, 2026
@Andy-Jost Andy-Jost added this to the cuda.core 1.3.0 milestone Sep 10, 2026

@Andy-Jost Andy-Jost 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.

Looks good; thanks for fixing this

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 P1 Medium priority - Should do test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants