Skip to content

AttributeError: module 'cupy' has no attribute '_cupyx' #363

@stijnh

Description

@stijnh

On google collab, using the cupy (14.0.1) backend gives the following error:

[/usr/local/lib/python3.12/dist-packages/kernel_tuner/core.py](https://localhost:8080/#) in __init__(self, kernel_source, device, platform, quiet, compiler, compiler_options, iterations, observers)
    280             )
    281         elif lang.upper() == "CUPY":
--> 282             dev = CupyFunctions(
    283                 device,
    284                 compiler_options=compiler_options,

[/usr/local/lib/python3.12/dist-packages/kernel_tuner/backends/cupy.py](https://localhost:8080/#) in __init__(self, device, iterations, compiler_options, observers)
     69         # collect environment information
     70         env = dict()
---> 71         cupy_info = str(cp._cupyx.get_runtime_info()).split("\n")[:-1]
     72         info_dict = {
     73             s.split(":")[0].strip(): s.split(":")[1].strip() for s in cupy_info

[/usr/local/lib/python3.12/dist-packages/cupy/__init__.py](https://localhost:8080/#) in __getattr__(name)
   1134         return getattr(_numpy, name)
   1135 
-> 1136     raise AttributeError(f"module 'cupy' has no attribute {name!r}")
   1137 
   1138 

AttributeError: module 'cupy' has no attribute '_cupyx'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions