Skip to content

Allow NULL dlpack deleter and no version in interfaces - #2427

Merged
seberg merged 2 commits into
NVIDIA:mainfrom
seberg:buffer-fixups
Jul 28, 2026
Merged

Allow NULL dlpack deleter and no version in interfaces#2427
seberg merged 2 commits into
NVIDIA:mainfrom
seberg:buffer-fixups

Conversation

@seberg

@seberg seberg commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

Technically a dlpack deleter is allowed to be NULL, the .get() seemed like a harmless change so I did it, but also doesn't really matter.
But trying to add a test for the .get() I noticed that there seemed quite a bit of duplication so the biggest change here is test deduplication...

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes. (I don't think this needs documentation, the most would be noting the deleter==null bugfix in release notes.)

Technically a dlpack deleter is allowed to be NULL, the `.get()`
seemed like a harmless change so I did it, but also doesn't really
matter.
But trying to add a test for the `.get()` I noticed that there seemed
quite a bit of duplication so the biggest change here is test
deduplication...
@seberg seberg added this to the cuda.core next milestone Jul 27, 2026
@seberg seberg self-assigned this Jul 27, 2026
@seberg seberg added bug Something isn't working P1 Medium priority - Should do cuda.core Everything related to the cuda.core module labels Jul 27, 2026
@seberg
seberg enabled auto-merge (squash) July 27, 2026 14:48
@github-actions

This comment has been minimized.

@seberg
seberg merged commit b598ef2 into NVIDIA:main Jul 28, 2026
103 checks passed
@seberg
seberg deleted the buffer-fixups branch July 28, 2026 19:20
@github-actions

Copy link
Copy Markdown
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

bug Something isn't working cuda.core Everything related to the cuda.core module P1 Medium priority - Should do

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants