Skip to content

coverage: add tests for memory, launcher, linker, program, and utils coverage gaps#2130

Open
rluo8 wants to merge 1 commit into
NVIDIA:mainfrom
rluo8:main
Open

coverage: add tests for memory, launcher, linker, program, and utils coverage gaps#2130
rluo8 wants to merge 1 commit into
NVIDIA:mainfrom
rluo8:main

Conversation

@rluo8
Copy link
Copy Markdown
Contributor

@rluo8 rluo8 commented May 22, 2026

Description

Adds focused unit tests that target previously-untested branches across cuda_core.

Here is the per-file coverage rate changes:
cuda/core/_memory/_legacy.py 64.52% -> 98.39% (+33.87%, -21 miss)
cuda/core/_launch_config.pyx 56.34% -> 77.46% (+21.13%, -15 miss)
cuda/core/_linker.pyx 64.64% -> 81.49% (+16.85%, -61 miss)
cuda/core/_memory/_peer_access_utils.pyx 22.02% -> 37.16% (+15.14%, -33 miss)
cuda/core/_memory/_device_memory_resource.pyx 68.06% -> 81.94% (+13.89%, -10 miss)
cuda/core/_memory/_graph_memory_resource.pyx 80.26% -> 88.16% (+7.89%, -6 miss)
cuda/core/_memoryview.pyx 62.99% -> 65.82% (+2.82%, -20 miss)
cuda/core/_memory/_virtual_memory_resource.py 89.58% -> 91.67% (+2.08%, -5 miss)
cuda/core/system/_device.pyx 76.47% -> 77.65% (+1.18%, -3 miss)
cuda/core/_program.pyx 86.06% -> 86.96% (+0.90%, -6 miss)

Total cuda/core/ 77.80% -> 79.53% (+1.73%, -180 miss)

The tests were run and could pass locally.

@github-actions github-actions Bot added the cuda.core Everything related to the cuda.core module label May 22, 2026
@rluo8
Copy link
Copy Markdown
Contributor Author

rluo8 commented May 22, 2026

Hi @mdboom @rwgk , could you please help review ? Thanks!

@github-actions
Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant