在run smc++的时候,遇到问题,
OpenBLAS blas_thread_init: pthread_create failed for thread 16 of 48: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 1024 current, 4134580 max
export OPENBLAS_NUM_THREADS=1
or
import os
os.environ['OPENBLAS_NUM_THREADS'] ='1'
在网上搜的时候,发现了其他的知识:
linux 每一个线程都有独立的栈空间,unlimit -a 可以知道具体的数据。
https://blog.youkuaiyun.com/u012110870/article/details/106115577
https://blog.youkuaiyun.com/lifuxianoa/article/details/6796813
本文详细介绍了在运行runsmc++过程中遇到的OpenBLAS多线程初始化错误,即资源暂时不可用的问题。通过设置OPENBLAS_NUM_THREADS环境变量为1,或使用Python代码限制线程数,可以有效解决此问题。同时,文章还提供了关于Linux系统中线程栈空间及资源限制的深入理解。
3173

被折叠的 条评论
为什么被折叠?



