在哪里可以找到释放GIL的numpy函数列表?

编程入门 行业动态 更新时间:2024-10-28 14:29:34
本文介绍了在哪里可以找到释放GIL的numpy函数列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我发现了几个SO问题,以一种或另一种方式询问此问题,但实际上没有一个给出列表或引用一个问题.

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.

此问题是指一个Wiki页面,但是当Wiki页面谈论关于 GIL和多线程时,它没有列出GIL释放功能.

This question refers to a wiki page, but while the wiki page talks about the GIL and multi-threading, it doesn't give a list of GIL releasing functions.

此邮件列表帖子指示找出答案的唯一方法是读取numpy源代码.真的吗?

This mailing list post indicates that the only way to find out is to read the numpy source. Really?

推荐答案

不能保证捕获所有内容,但我只是跑了:

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

git grep nogil

在我的numpy存储库克隆中.它在2个文件中显示了82种用法:

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

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

更多推荐

在哪里可以找到释放GIL的numpy函数列表?

本文发布于:2023-10-08 14:12:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1472864.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以找到   函数   列表   numpy   GIL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!