Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Calling threadpool_info in cython parallel block may cause a deadlock

未关闭
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
backend

调研方向

The report shows a Cython nogil parallel block calling threadpool_info() under the GIL, and says the behavior may depend on multiple OpenMP runtimes. Start by checking how threadpool_info() inspects loaded thread pools and how the project handles OpenMP calls from parallel regions. Done means reproducing the deadlock and establishing whether this usage is supported or needs a documented limitation.

由索引模型根据 Issue 内容生成。

描述

When there are multiple OpenMP loaded. Replacing 0 by any other thread_num (below) can cause the issue.

with nogil, parallel():
    if openmp.omp_get_thread_num() == 0:
        with gil:
            threadpool_info()

I'm not sure if it's a real issue. It means that trying to control the number of inner threads independently in each outer threads is a bad idea. But I think it's not the purpose of threadpoolctl.

主要语言
Python
星标
434
派生
38
平均合并
2 天 9 小时
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

joblib/threadpoolctl 的其他 Issue

查看 joblib/threadpoolctl 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。