Skip to content

Remove _SynchronousMemoryResource from cuda.core._memory public API#1933

Merged
cpcloud merged 1 commit into
mainfrom
remove-synchronousmemoryresource-from-all
Apr 17, 2026
Merged

Remove _SynchronousMemoryResource from cuda.core._memory public API#1933
cpcloud merged 1 commit into
mainfrom
remove-synchronousmemoryresource-from-all

Conversation

@mdboom

@mdboom mdboom commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Problem: _SynchronousMemoryResource is a private symbol (underscore-prefixed) that was listed in __all__ in cuda/core/_memory/_legacy.py, making it unintentionally part of the public API surface of cuda.core._memory.

Fix:

  • Remove _SynchronousMemoryResource from __all__ in _legacy.py
  • Update internal imports in _device.pyx and test_launcher.py to use the full private module path (cuda.core._memory._legacy) instead of the package-level import

All existing tests pass (242 passed, 11 skipped across test_memory.py and test_launcher.py).

Remove _SynchronousMemoryResource from __all__ in _legacy.py since it is
a private symbol (underscore-prefixed) that should not be part of the
public API surface.

Update internal imports in _device.pyx and test_launcher.py to use the
full private module path (cuda.core._memory._legacy) instead of the
package-level import.
@mdboom mdboom added this to the cuda.core v1.0.0 milestone Apr 16, 2026
@mdboom mdboom added bug Something isn't working cuda.core Everything related to the cuda.core module labels Apr 16, 2026
@github-actions

Copy link
Copy Markdown

@mdboom mdboom added enhancement Any code-related improvements and removed bug Something isn't working labels Apr 17, 2026
@mdboom mdboom self-assigned this Apr 17, 2026
@cpcloud
cpcloud merged commit 0992a02 into main Apr 17, 2026
100 of 107 checks passed
@cpcloud
cpcloud deleted the remove-synchronousmemoryresource-from-all branch April 17, 2026 14:16
github-actions Bot pushed a commit that referenced this pull request Apr 18, 2026
Removed preview folders for the following PRs:
- PR #1593
- PR #1908
- PR #1923
- PR #1925
- PR #1933
- PR #1934
- PR #1938
- PR #1939
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 enhancement Any code-related improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants