Skip to content

[BUG]: cuda.core.experimental._stream.IsStreamT and cuda.core.experimental._memory.DevicePointerT missing in v0.5.0 #1419

@xiakun-lu

Description

@xiakun-lu

Is this a duplicate?

Type of Bug

Runtime Error

Component

cuda.core

Describe the bug

cuda.core 0.5.0 removed "experimental" in the module path, and added expermental/init.py for compatibility, but cuda.core.experimental._stream.IsStreamT and cuda.core.experimental._memory.DevicePointerT are not included, leading to compatibility issue if IsStreamT or DevicePointerT is used.

either IsStreamT or DevicePointerT are exposed in __init__.py and treated as public API, but they appears in the public API arg list, see:

they should be treated as public and maintain compatibility within a major version.

How to Reproduce

install cuda.core 0.5.0

Python 3.10.19 (main, Oct 28 2025, 12:10:48) [Clang 20.1.4 ] on linux 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import cuda 
>>> from cuda.core.experimental._stream import IsStreamT, Stream 
<stdin>:1: DeprecationWarning: The cuda.core.experimental namespace is deprecated. Please import directly from cuda.core instead. For example, use 'from cuda.core import Device' instead of 'from cuda.core.experimental import Device'. The experimental namespace will be removed in v1.0.0. 
Traceback (most recent call last): 
  File "<stdin>", line 1, in <module> 
ModuleNotFoundError: No module named 'cuda.core.experimental._stream' 

Expected behavior

from cuda.core.experimental._stream import IsStreamT and from cuda.core.experimental._memory import DevicePointerT should work w/o errors.

IsStreamT and DevicePointerT are exposed in cuda.core.experimental

Operating System

No response

nvidia-smi output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Medium priority - Should dobugSomething isn't workingcuda.coreEverything related to the cuda.core module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions