在 windows 上安装支持 gpu 的 lightgbm

install lightgbm with gpu support on windows

我可以从 Windows 提示

的源安装 lightgbm
  A:\LightGBM>Rscript build_r.R 

当我尝试使用 GPU 支持构建时,出现此错误:

CMake Error at A:/programas/CMake/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
-- Configuring incomplete, errors occurred!
  Could NOT find Boost (missing: Boost_INCLUDE_DIR filesystem system)
  (Required is at least version "1.56.0")

然后我尝试在 https://github.com/microsoft/LightGBM/tree/master/R-package 之后包含 boost 目录。我得到了:

A:\LightGBM>Rscript build_r.R --use-gpu --boost-include-dir="/programas/boost_1_75_0/"
...
...
installing via 'install.libs.R' to A:/RLibrary/00LOCK-lightgbm/00new/lightgbm
Error in eval(ei, envir) : objeto 'programas' não encontrado

我试过了 with/without "/\。 怎么做?谢谢

--boost-include-dir 的参数需要是绝对路径,像这样:

Rscript build_r.R --use-gpu --boost-include-dir="A:/programas/boost_1_75_0/"