Skip to content

coverage: add cuda.core test_utils.py tests for DLPack/StridedMemoryView#2181

Open
rluo8 wants to merge 1 commit into
NVIDIA:mainfrom
rluo8:coverage-test-utils
Open

coverage: add cuda.core test_utils.py tests for DLPack/StridedMemoryView#2181
rluo8 wants to merge 1 commit into
NVIDIA:mainfrom
rluo8:coverage-test-utils

Conversation

@rluo8

@rluo8 rluo8 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Description

Split out from #2168 per review. Adds tests targeting
cuda/core/experimental/_memoryview.pyx:

  • DLPack export round-trip over all NumPy-native dtypes and
    scalar/zero-volume shapes
  • versioned/unversioned capsule + deleter paths
  • from_dlpack: ambiguous-stream and unsupported-device errors, TypeError -> unversioned-import fallback
  • CAI path: device-pointer + stream-ordering view, deprecated init path, has_dlpack=False proxy, device-accessible view, None-dtype repr
  • DLPack C exchange-API helpers

Coverage change:
_memoryview.pyx coverage 65.82% -> 85.73%.

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant