numba/numba

Function of len() is invalid to dynamic share array

Open

#5,206 opened on 2020年2月6日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Python (1,132 forks)batch import
CUDATaskgood first issue

Repository metrics

Stars
 (9,177 stars)
PR merge metrics
 (平均マージ 14d 16h) (30d で 30 merged PRs)

説明

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?

コントリビューターガイド