博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
xgboost 多gpu支持 编译
阅读量:6971 次
发布时间:2019-06-27

本文共 1820 字,大约阅读时间需要 6 分钟。

xgboost 多gpu支持 编译 Ubuntu 18.04.2 Linux 4.15.0-46-generic gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 cuda 10.0     https://docs.nvidia.com/cuda/archive/10.0/cuda-installation-guide-linux/index.html#verify-you-have-supported-version-of-linux     安装略 nccl2     git clone https://github.com/NVIDIA/nccl.git     cd nccl     make -j src.build xgboost     (建议选择稳定版源码编译 如 0.82)     mkdir xgboost-src     git clone --recursive https://github.com/dmlc/xgboost.git     或     git clone https://github.com/dmlc/xgboost.git     git submodule init     git submodule update     设置版本0.82(!然而最后安装后的版本是0.81)     git checkout 3f83dcd     mkdir build     cd build     cmake .. -DUSE_CUDA=ON -DUSE_NCCL=ON -DNCCL_ROOT=/xxx/install/nccl-src/nccl/build     make -j4     直至出现类似结果         ...         Scanning dependencies of target gpuxgboost         [ 95%] Linking CXX static library libgpuxgboost.a         [ 95%] Built target gpuxgboost         Scanning dependencies of target runxgboost         [ 97%] Building CXX object CMakeFiles/runxgboost.dir/src/cli_main.cc.o         [ 98%] Linking CXX executable ../xgboost         [ 98%] Built target runxgboost         Scanning dependencies of target xgboost         [100%] Linking CXX shared library ../lib/libxgboost.so         [100%] Built target xgboost     cd ../python-package     python setup.py install 备注: 如果切换 使用 update-alternatives gcc/g++ 版本时,可能会出现各种引用异常,此时建议切换到gcc/g++某个已安装版本(如7.3), 重启机器 ------------------------------------------------------ tensorflow (对应cuda 10.0)      tensorflow-gpu        1.13.1      pip install tensorflow-gpu ------------------------------------------------------ torch  (对应cuda 10.0)     pip install https://download.pytorch.org/whl/cu100/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl     pip install torchvision

转载于:https://www.cnblogs.com/kdyi/p/10636988.html

你可能感兴趣的文章
JAVA9模块化详解(一)——模块化的定义
查看>>
Xcode 和 VisualC++输出流的差别的理解
查看>>
基于key/value+Hadoop HDFS 设计的存储系统的shell命令接口
查看>>
外派到某项目帮忙,但受到排斥怎办?
查看>>
调整数组顺序使奇数位于偶数前面
查看>>
6月20日云栖精选夜读:阿里怎么发工资?自研薪酬管理系统首次曝光
查看>>
下半年值得关注的新机和科技趋势
查看>>
砸金蛋概率
查看>>
我的权限系统设计实现MVC4 + WebAPI + EasyUI + Knockout(五)框架及Web项目的组件化...
查看>>
操作多了就容易忘记
查看>>
FMDB 基本使用
查看>>
bind和eval的区别
查看>>
sql 查找入职员工时间排名倒数第三(查找某一列特定排名)
查看>>
windows连接mac的mysql数据库
查看>>
UVALive - 6667 Longest Chain CDQ3维问题
查看>>
CodeForces round 520 div2
查看>>
微信开发(一)基于Wx-java的微信分享功能
查看>>
Redis整合Spring结合使用缓存实例(转)
查看>>
线程池的原理及实现(转)
查看>>
SSO(转)
查看>>