Ubuntu16.04配置Leela zero(cpu版)

安装编译依赖:
  • 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
         解压下载的文件: 
            
#su
#tar --bzip2 -xvf boost_1_58_0.tar.bz2
#cd boost_1_58_0
#./bootstrap.sh
#./bjam(时间较长)
#./bjam install
3.安装openCL(intel)
         
#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
#unzip best_v1.txt.zip
#src/leelaz --weights weights.txt
阅读更多
文章标签: Ubuntu leela
个人分类: 围棋
上一篇Mac 使用python3的matplot画图不显示问题
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭