安装过程见官方文档:http://xgboost.readthedocs.io/en/latest/build.html
主要有以下两步
1. 下载源代码
git clone --recursive https://github.com/dmlc/xgboost
2. 编译GPU共享库
cd xgboost
mkdir build
cd build
cmake .. -DUSE_CUDA=ON
make -j
3. 安装Python包
在xgboost根目录下
cd python-package
sudo python3 setup.py install
测试GPU加速
python3 tests/benchmark/benchmark.py