lightgbm GPU版支持VS一鍵編譯了!

編譯lightgbm

cd  LightGBM-master/windows 
  • 打開 LightGBM.sln file with Visual Studio, 選擇 Release configuration and 點擊 BUILD (生成)-> Build Solution(生成解決方案) (或者使用快捷鍵Ctrl+Shift+B).
  • If you have errors about Platform Toolset, go to PROJECT -> Properties -> Configuration Properties -> General and select the toolset installed on your machine.

The .exe file will be in LightGBM-master/windows/x64/Release folder.

安裝python package

cd  LightGBM-master/python-package
python setup.py install --user

running install
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with MSBuild from existing solution file.
WARNING:LightGBM:Compilation with MSBuild from existing solution file failed.
INFO:LightGBM:Starting to compile with Visual Studio 16 2019.

 

 

 

 

inference:

https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#id18

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章