【问题标题】:install lightgbm with gpu support on windows在 Windows 上安装支持 gpu 的 lightgbm
【发布时间】:2021-01-28 19:29:43
【问题描述】:

我可以从 Windows Prompt 的源代码安装 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

我试过有/没有"/\。 怎么做?提示

【问题讨论】:

    标签: r windows installation gpu lightgbm


    【解决方案1】:

    --boost-include-dir 的参数必须是绝对路径,如下所示:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-11
      • 1970-01-01
      相关资源
      最近更新 更多