Where can I find a list of numpy functions which release the GIL?

后端 未结 1 1473
庸人自扰
庸人自扰 2020-12-19 01:56

I have found several SO questions asking about this in one way or another, but none of them actually either give a list or refer to one.

This question refers to a wi

1条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 02:06

    It's not guaranteed to catch everything, but I just ran:

    git grep nogil
    

    in my clone of the numpy repository. It turns up 82 usages in 2 files:

    • random/mtrand/mtrand.pyx
    • random/mtrand/numpy.pxd

    0 讨论(0)
提交回复
热议问题