以下安装基于Ubuntu 18.04.3 Python 3.6.8
1. lightgbm GPU编译
点击链接 找到Build GPU Version
或者直接看如下内容。
下面说的内容用到相关测软件确保没问题,1.检查是否安装,2.检查安装版本是否满要求!!!
Linux
On Linux GPU version of LightGBM can be built using OpenCL, Boost, CMake and gcc or Clang.
The following dependencies should be installed before compilation:
OpenCL 1.2 headers and libraries, which is usually provided by GPU manufacture.
The generic OpenCL ICD packages (for example, Debian package ocl-icd-libopencl1 and ocl-icd-opencl-dev) can also be used.
libboost 1.56 or later (1.61 or later is recommended).
We use Boost.Compute as the interface to GPU, which is part of the Boost library since version 1.61. However, since we include the source code of Boost.Compute as a submodule, we only require the host has Boost 1.56 or later installed. We also use Boost.Align for memory allocation. Boost.Compute requires Boost.System and Boost.Filesystem to store offline kernel cache.
The following Debian packages should provide necessary Boost libraries: libboost-dev, libboost-system-dev, libboost-filesystem-dev.
CMake 3.2 or later.
To build LightGBM GPU version, run the following commands:
注意:下面编译的时