如何解决在 Windows 上安装支持 gpu 的 lightgbm
我可以通过 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
我试过有/没有"/\
。
怎么做? tks
解决方法
--boost-include-dir
的参数需要是绝对路径,如下所示:
Rscript build_r.R --use-gpu --boost-include-dir="A:/programas/boost_1_75_0/"
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。