Skip to content

Expose type aliases and protocols via cuda.core.typing#1827

Draft
leofang wants to merge 2 commits intoNVIDIA:mainfrom
leofang:expose-typing
Draft

Expose type aliases and protocols via cuda.core.typing#1827
leofang wants to merge 2 commits intoNVIDIA:mainfrom
leofang:expose-typing

Conversation

@leofang
Copy link
Copy Markdown
Member

@leofang leofang commented Mar 29, 2026

Summary

  • Add a public cuda.core.typing module that re-exports type aliases and protocols used in cuda.core API signatures: IsStreamT, DevicePointerT, VirtualMemoryAllocationTypeT, VirtualMemoryLocationTypeT, VirtualMemoryGranularityT, VirtualMemoryAccessTypeT, VirtualMemoryHandleTypeT
  • Update api_private.rst docs to reference cuda.core.typing.* instead of private module paths
  • Add tests verifying all imports and identity with the original definitions

Closes #1419

Test plan

  • test_typing_module_imports — all 7 symbols importable from cuda.core.typing
  • test_typing_matches_private_definitions — re-exports are identical objects to the private definitions

-- Leo's bot

leofang and others added 2 commits March 27, 2026 01:06
Add a public cuda.core.typing module that re-exports type aliases
and protocols used in cuda.core API signatures (IsStreamT,
DevicePointerT, VirtualMemory*T). These were previously only
accessible via private module paths, which broke in v0.5.0.

Closes NVIDIA#1419

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot bot commented Mar 29, 2026

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: cuda.core.experimental._stream.IsStreamT and cuda.core.experimental._memory.DevicePointerT missing in v0.5.0

1 participant