准备
首先,安装cuda。我这里装的是10.0版,因为tensorflow现在要求10.0版。建议您安装xgboost gpu版的时候,注意看一下tensorflow的安装文档
Visual Studio 2017, 这个比较麻烦,我是在自己电脑上找到installer的。。。
下载源代码
如果你在国外,请用这个命令下载
git clone https://github.com/dmlc/xgboost.git xgboost
按照中国这个破网速,还是下载zip比较快
https://github.com/dmlc/xgboost/archive/master.zip
git submodule init
git submodule update
编译
编译之前,看一下自己的c++版本号,cuda版本号。