已开启
[Bug]: 【26.2.0众测】容器环境连续 torch.compile 触发 pthread_create failed(pids 上限) #5244
tsst创建于 9月29日
9月29日 添加了label:help-wantedbot-triaged
TorchNPU-Bot
9月29日 评论:
9月29日 评论:
检测到社区任务相关 issue,自动添加标签:help-wanted


9月29日 添加了label:bug
10月4日 关联了pull request:【26.1.0众测】TorchNPU 众测任务交付(任务1+任务2)- ander_tsing
在提交新问题之前,请确保您已经在社区中搜索过相关问题,并使用了社区中提供的资源/工具后,仍未找到满意的解决方式。
⚠️ 安全信息提醒:请仔细检查提供的文本内容,确保其不包含敏感数据信息,包括但不限于:
在分享配置信息或代码示例时,请将敏感信息脱敏处理,或使用
<TOKEN>等占位符替代原有内容。环境信息
硬件:Atlas 800T A3(npu-smi Product Name = IT22HMDA_2_S,SoC = Ascend910_9382,HBM 64GB/芯片)
软件:CANN 9.1.0 + TorchNPU 26.1.0(torch 2.9.0 / torch_npu 2.9.0.post6)
容器:nproc=640(共享整机视图),cgroup pids.max=10000
🐛 问题描述
现象:
连续跑多个全新 torch.compile 编译时,Triton/Inductor 子进程崩溃:
text
LLVM ERROR: pthread_create failed: Resource temporarily unavailable
torch._inductor.exc.InductorError: SubprocException: An exception occurred in a subprocess:
Name=triton_poi_fused_relu_8
...
NoTritonConfigsError: No valid triton configs for kernel triton_poi_fused_relu_8.
复现步骤:
bash
连续跑多个全新 compile(例如 run_all.sh 连环跑)
cd /workspace/scripts/task2
bash run_all.sh
根因推测:
临时处置(实测有效):
建议:
欢迎加入社区,感谢您对社区的贡献 🎉!