test(cuda.core): skip generic HOST pool regression before CUDA 13 - #2800
Open
rluo8 wants to merge 2 commits into
Open
test(cuda.core): skip generic HOST pool regression before CUDA 13#2800rluo8 wants to merge 2 commits into
rluo8 wants to merge 2 commits into
Conversation
Signed-off-by: Rui Luo <ruluo@nvidia.com>
|
Andy-Jost
approved these changes
Sep 10, 2026
Andy-Jost
left a comment
Contributor
There was a problem hiding this comment.
Looks good; thanks for fixing this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).