Skip to content

Fix #2027: Remove StridedMemoryView etc. from public API#2028

Merged
leofang merged 10 commits intoNVIDIA:mainfrom
mdboom:issue2027
May 6, 2026
Merged

Fix #2027: Remove StridedMemoryView etc. from public API#2028
leofang merged 10 commits intoNVIDIA:mainfrom
mdboom:issue2027

Conversation

@mdboom
Copy link
Copy Markdown
Contributor

@mdboom mdboom commented May 5, 2026

No description provided.

@mdboom mdboom requested a review from rparolin May 5, 2026 21:10
@mdboom mdboom self-assigned this May 5, 2026
@mdboom mdboom added the cuda.core Everything related to the cuda.core module label May 5, 2026
@mdboom mdboom added this to the cuda.core v1.0.0 milestone May 5, 2026
@mdboom mdboom added breaking Breaking changes are introduced P0 High priority - Must do! labels May 5, 2026
@github-actions

This comment has been minimized.

Comment thread cuda_core/tests/test_graphics.py Outdated
Comment thread cuda_core/tests/test_tensor_map.py Outdated
mdboom and others added 4 commits May 5, 2026 18:54
@mdboom
Copy link
Copy Markdown
Contributor Author

mdboom commented May 6, 2026

@leofang, @rparolin: Having seen the full test failures, which included an example that uses StridedMemoryView, I've decided that what we want to do here is not fully remove these two things, but to make their canonical exposure be in cuda.core.utils. Rerequesting review to confirm we all agree.

@mdboom mdboom requested review from leofang and rparolin May 6, 2026 11:54
Comment thread cuda_core/docs/source/api.rst Outdated
:template: autosummary/cyclass.rst

StridedMemoryView
cuda.core.utils.StridedMemoryView
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this?

Suggested change
cuda.core.utils.StridedMemoryView
utils.StridedMemoryView

and we remove line 282 (.. module:: cuda.core.utils).

Comment thread cuda_core/docs/source/api.rst Outdated
:toctree: generated/

args_viewable_as_strided_memory
cuda.core.utils.args_viewable_as_strided_memory
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cuda.core.utils.args_viewable_as_strided_memory
utils.args_viewable_as_strided_memory

Comment on lines +128 to +131
- :func:`args_viewable_as_strided_memory` and :class:`StridedMemoryView` are now
longer at the top-level in :mod:`cuda.core`. They are available publicly from the
:mod:`cuda.core.utils` module.
(`#2028 <https://github.com/NVIDIA/cuda-python/issues/2028>`__)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW they were always meant to be available via utils, it seems we slipped in the v0.4 - v0.5 timeframe.

@leofang
Copy link
Copy Markdown
Member

leofang commented May 6, 2026

LGTM, thanks Mike!

@leofang leofang merged commit 598a966 into NVIDIA:main May 6, 2026
94 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Doc Preview CI
Preview removed because the pull request was closed or merged.

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

Labels

breaking Breaking changes are introduced cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants