Skip to content

Function of len() is invalid to dynamic share array #5206

Open
@mantouRobot

Description

@mantouRobot

Hi~
I found the function of len() is invalid to dynamic share array. Here is my code snippet:

@cuda.jit
def kern_fun()
    dynamic_share_array = cuda.shared.array(0, numba.float32)
    fill_value(dynamic_share_array)
    print(len(dynamic_share_array))

main():
    kern_fun[1, 10, 0, 100]()

the output of print is '0'. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CUDACUDA related issue/PRTaskgood first issueA good issue for a first time contributor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions