Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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