【问题标题】:Any method to limit the CPU usage of pycaffe compiled with openblas?有什么方法可以限制用openblas编译的pycaffe的CPU使用率?
【发布时间】:2018-11-14 11:23:33
【问题描述】:

pycaffe 是用 openblas 编译的。

我的 pycaffe 模型在训练时占用了 20 多个 CPU 内核,有什么方法可以限制吗?

【问题讨论】:

    标签: machine-learning caffe pycaffe


    【解决方案1】:

    尝试设置环境变量

    OPENBLAS_NUM_THREADS=10
    

    之前运行 pycaffe 将 openblas 限制为仅 10 个线程。

    【讨论】:

      猜你喜欢
      • 2010-10-10
      • 1970-01-01
      • 1970-01-01
      • 2020-08-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      相关资源
      最近更新 更多