Skip to content

cuda.core: raise BufferError instead of RuntimeError in check_has_dlpack - #2160

Merged
leofang merged 1 commit into
NVIDIA:mainfrom
rluo8:main
Jun 2, 2026
Merged

cuda.core: raise BufferError instead of RuntimeError in check_has_dlpack#2160
leofang merged 1 commit into
NVIDIA:mainfrom
rluo8:main

Conversation

@rluo8

@rluo8rluo8 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Description

check_has_dlpack raised RuntimeError when an object supports neither DLPack nor the CUDA Array Interface, but the StridedMemoryView docstring documents BufferError. This fix aligns the implementation with the docs to raise BufferError.

Checklist

  • [√] New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@github-actionsgithub-actionsBot added the cuda.core Everything related to the cuda.core module label Jun 2, 2026
@github-actions

This comment has been minimized.

@leofangleofang added bug Something isn't working P0 High priority - Must do! labels Jun 2, 2026
@leofangleofang added this to the cuda.core v1.1.0 milestone Jun 2, 2026
@leofang
leofang merged commit 6b81b50 into NVIDIA:mainJun 2, 2026
101 of 103 checks passed
@leofang

Copy link
Copy Markdown
Member

Thanks, Rui!

@github-actions

This comment has been minimized.

2 similar comments
@github-actions

This comment has been minimized.

@github-actions

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

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

Labels

bugSomething isn't workingcuda.coreEverything related to the cuda.core moduleP0High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@rluo8@leofang