问答交流

【平台使用】如何在 M.tune.run 中设置线程数?

由faketact创建,最终由small_q 被浏览 12 用户

M.tune.run怎么设置线程数

4核机器默认跑4线程内存有时候不够会停掉,请问怎么设置2线程?

评论
  • 好问题,还真把我问到了。我晚点回复,得先去问下工程师 ,了解下底层原理。
  • 具体使用可以参考代码:
  • 好的,多谢。线程多偶尔会报错:
  • TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker. The exit codes of the workers are {SIGKILL(-9)}
  • 执行几次可能成功,看了下内存,快到顶了
{link}