Skip to content

Fix bindings & update tests for cuDevSmResourceSplit and cudaDevSmResourceSplit#1766

Merged
cpcloud merged 1 commit intoNVIDIA:mainfrom
rwgk:cuDevSmResourceSplit_fix
Mar 16, 2026
Merged

Fix bindings & update tests for cuDevSmResourceSplit and cudaDevSmResourceSplit#1766
cpcloud merged 1 commit intoNVIDIA:mainfrom
rwgk:cuDevSmResourceSplit_fix

Conversation

@rwgk
Copy link
Collaborator

@rwgk rwgk commented Mar 16, 2026

Fixes: #1764

cython-gen PR: 282

The incorrect bindings were added with #1337 shortly after the CTK 13.1.0 release.

Update test_cuDevSmResourceSplit and test_cudaDevSmResourceSplit to:

  • Pass groupParams as a list instead of a single object (matching the corrected signature mapping)
  • Add test cases for 0, 1, and 2 group parameters to ensure proper edge case coverage
  • Handle cases where the API may fail due to insufficient device resources gracefully

The binding signature was corrected in cython-gen to match the CUDA API documentation which specifies groupParams as an array of size nbGroups.

Update test_cuDevSmResourceSplit and test_cudaDevSmResourceSplit to:
- Pass groupParams as a list instead of a single object (matching the
  corrected signature mapping)
- Add test cases for 0, 1, and 2 group parameters to ensure proper
  edge case coverage
- Handle cases where the API may fail due to insufficient device
  resources gracefully

The binding signature was corrected in cython-gen to accept
list[CU_DEV_SM_RESOURCE_GROUP_PARAMS] instead of a single object,
matching the CUDA API documentation which specifies groupParams as
an array of size nbGroups.

Includes regenerated bindings from cython-gen with the corrected
signature mapping.

Related: cython-gen commit fixing signature mapping
Fixes: NVIDIA#1764
Made-with: Cursor
@rwgk rwgk self-assigned this Mar 16, 2026
@rwgk rwgk added the cuda.bindings Everything related to the cuda.bindings module label Mar 16, 2026
@github-actions
Copy link

@rwgk rwgk changed the title Update tests for cuDevSmResourceSplit and cudaDevSmResourceSplit Fix bindings & update tests for cuDevSmResourceSplit and cudaDevSmResourceSplit Mar 16, 2026
@cpcloud cpcloud merged commit 26542bd into NVIDIA:main Mar 16, 2026
88 checks passed
@rwgk rwgk deleted the cuDevSmResourceSplit_fix branch March 16, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: cuda.bindings.driver.cuDevSmResourceSplit groupParams is not a list

2 participants