简体   繁体   English

带R的XGBoost,忽略了nthread吗?

[英]XGBoost with R, nthread ignored?

I know R itself is singlethreaded, but XGboost has a parameter nthread which supposedly should control the number of threads xgboost is using for processing. 我知道R本身是单线程的,但是XGboost具有参数nthread,该参数应该控制xgboost用于处理的线程数。 However, no matter how I set it, I see only one of my cores being used. 但是,无论如何设置,都只能看到我使用的一个核心。

What needs to be done to make it run in parallel? 要使其并行运行需要做什么?

Are you on a mac? 您在Mac上吗? The native C++ compiler (Clang) doesn't support openMP so you have to do some hacking to enable multi-threading. 本机C ++编译器(Clang)不支持openMP,因此您必须进行一些修改才能启用多线程。

https://github.com/dmlc/xgboost/blob/master/doc/build.md https://github.com/dmlc/xgboost/blob/master/doc/build.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM