下载Leela zero:https://github.com/gcp/leela-zero
安装编译依赖:
  • GCC, Clang or MSVC, any C++14 compiler
  • Boost 1.58.x or later, headers and program_options library (libboost-dev & libboost-program-options-dev on Debian/Ubuntu)
  • BLAS Library: OpenBLAS (libopenblas-dev) or (optionally) Intel MKL
  • zlib library (zlib1g & zlib1g-dev on Debian/Ubuntu)
  • Standard OpenCL C headers (opencl-headers on Debian/Ubuntu, or at https://github.com/KhronosGroup/OpenCL-Headers/tree/master/opencl22/)
  • OpenCL ICD loader (ocl-icd-libopencl1 on Debian/Ubuntu, or reference implementation at https://github.com/KhronosGroup/OpenCL-ICD-Loader)
  • An OpenCL capable device, preferably a very, very fast GPU, with recent drivers is strongly recommended (OpenCL 1.2 support should be enough, even OpenCL 1.1 might work). If you do not have a GPU, modify config.h in the source and remove the line that says "#define USE_OPENCL".
1.GCC略
2.安装Boost1.58.0:
下载Boost1.58.0.tar.bz2
         https://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download
         解压下载的文件: 
#su
#tar --bzip2 -xvf boost_1_58_0.tar.bz2
#cd boost_1_58_0
#./bootstrap.sh
#./bjam(时间较长)
#./bjam install
3.安装openCL(intel)
  • 下载intel openCL SDK: https://software.intel.com/en-us/intel-opencl   并解压
  •  安装依赖:
         
#apt install clinfo && clinfo
#apt install dkms xz-utils openssl libnuma1 libpciaccess0 bc curl libssl-dev lsb-core libicu-dev
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys  3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
#echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
#apt-get update sudo apt-get install mono-complete
  • 进入openCL SDK目录
       
#sh install.sh
(默认选项,可能会提示“Unsupported OS”,无视掉即可)
    安装后,在命令行中输入clinfo就能看到intel的平台和设备
        
编译和运行命令:
#cd leela-zero/src
#apt install libboost-dev libboost-program-options-dev libopenblas-dev opencl-headers ocl-icd-libopencl1 ocl-icd-opencl-dev zlib1g-dev
#make
#wget https://sjeng.org/zero/best_v1.txt.zip
#unzip best_v1.txt.zip
#src/leelaz --weights weights.txt

Ubuntu16.04配置Leela zero(cpu版)相关推荐

  1. Ubuntu16.04配置orb_slam2环境,orb_slam的单目数据集,单目实时运行,RGB-D数据集的运行

    Ubuntu16.04配置orb_slam2环境,orb_slam的单目数据集,单目实时运行,RGB-D数据集的运行 1.运行配置过程中参考链接如下: 1.配置orb_slam2环境 参考链接http ...

  2. Ubuntu16.04 配置记录(持续更新)

    Ubuntu16.04 配置记录 1.安装中文输入法 https://www.cnblogs.com/darklights/p/7722861.html 2.修改终端命令行路径长度 https://b ...

  3. ubuntu16.04配置Latex+中文字体

    Ubuntu16.04配置Latex+中文字体 Latex安装 先前安装版本的卸载 apt-get安装包的深度卸载 通过安装器"install-tl"安装的texlive卸载 通过 ...

  4. ubuntu16.04配置a-loam、lego-loam、lio-sam可能遇到的问题及解决方案

    ubuntu16.04配置a-loam.lego-loam.lio-sam可能遇到的问题及解决方案 1.安装a-loam github网址:https://github.com/HKUST-Aeria ...

  5. Ubuntu16.04配置软raid

    Ubuntu16.04配置软raid 1.查看磁盘情况 这里推荐两种查看磁盘情况的命令: # 1.使用fdisk -l查看磁盘root@txkj:/home/txkj# fdisk -lDisk /d ...

  6. ubuntu16.04 配置显卡驱动+cuda8.0+cudnn+pytorch

    ubuntu1604 配置显卡驱动cuda80cudnnpytorch 在线安装显卡驱动 离线安装cuda 安装cudnn 配置环境变量 离线安装cond 配置pytorch 测试pytorch 感悟 ...

  7. Ubuntu16.04配置pytorch环境(CPU版)

    最近在入手pytorch,但由于电脑硬件的限制,暂时体验了一下无GPU版的pytorch环境,顺便将此配置过程记录下来,供自己和他人以后参考.话不多说,just do it! 一.目标环境 ubunt ...

  8. ubuntu16.04配置py-faster-rcnn

    在ubuntu16.04下编译安装了py-faster-rcnn. 如果你发现本文写的有不对或不清晰的地方,还请在文末留言指出,谢谢! 主要步骤包括:安装cuda/cudnn,换apt源,装开源显卡驱 ...

  9. 【Ubuntu】Ubuntu16.04配置python环境(vim、ipython)

    在Ubuntu16.04中配置python环境   继Ubuntu16.04+VMware+Win10安装及配置教程之后,我们便可以在Ubuntu平台上开发python程序.   ubuntu16.0 ...

最新文章

  1. 企业怎样管理员工才会更有效?
  2. jdk9与jdk11哪个好_JDK 9、10和11中的安全性增强
  3. 一维前缀和(附模板题)
  4. django xadmin 默认密码_Pycharm创建Django项目讲解 python django
  5. Node:使用node-postgre时,使用async、await查询
  6. 会议预约及信息发布服务器,会议预约系统
  7. 房贷计算器移动端接口
  8. 加来道雄 基因编辑 纳米机器人_同样基因编辑技术,为什么2位学者获得诺奖,中国贺建奎被痛骂?!...
  9. 七脉轮位置_十分钟告诉你七个脉轮的全部,从未如此简单
  10. 【服务器管理】Ubuntu的一次惊心动魄的查杀挖矿病毒的经历:病毒伪装成python
  11. matlab华侨大学,范文涛
  12. qq小程序绑定服务器,QQ小程序 用户信息
  13. DC Administration Services 宣布ISDA裁决委员会2021年申请流程
  14. Windows10总弹出打开文件安全警告怎么关闭
  15. C Prime Plus 第一章 初识C语言
  16. 阿里 VP 贾扬清确认离职!尚未创立公司,方向或是 AI 架构?
  17. 【数据结构】链表 - Go 语言实现
  18. 最小费用最大流 【模板】
  19. 商业房间分隔器行业调研报告 - 市场现状分析与发展前景预测
  20. html代码中title什么意思,html中title啥意思

热门文章

  1. 研究生 课程 软件测试
  2. 三端稳压器去耦电容导致的环路不稳定
  3. AD16_PCB电路板各个分层的用途
  4. Swift Intermediate Language
  5. 多元线性回归-python代码
  6. 微软ohloh、Lava-Lava、破解Skype
  7. 机器学习数据不均衡处理教程
  8. 秀币Showcoin:区块链+直播何以抟扶摇而上
  9. 2022,再接再厉~~
  10. 怎么在CAD图中插入Excel表格