Skip to content

[BUG] carray is a deadcode #702

@ZzEeKkAa

Description

@ZzEeKkAa

Problem

from numba.cuda.np.numpy_support import carray suppose to create an array from a c-pointer, however because of the legalize_return_type pass it fails, making it a deadcode.

https://github.com/NVIDIA/numba-cuda/blob/main/numba_cuda/numba/cuda/np/arrayobj.py#L5819-L5834

Possible solution

Make carray overload inline="always" and disable legalize_return_type for inline="always".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions