-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LightGBM GPU Python 3.7 CUDA 10.1 Windows boost 1.69 compilation error #2096
Comments
@StrikerRUS hope it's enough information, waiting for you help, thanks. |
@dishkakrauch Sure, let's try!
How would you like to use GPU version of LightGBM: with VS or MinGW? Note: the first variant (Visual Studio) is recommended UPD: ... and easier. |
@StrikerRUS of course, I prefer VS. p.s. sorry, I accidentally closed issue, but reopened it in a second. |
OK. Then please download https://bintray.com/boostorg/release/boost-binaries/1.69.0#files (if not already) and unzip them into some folder ( |
Please post screenshot here of resulted folder structure of unzipped Boost - I'll adjust paths in next commands. |
@StrikerRUS Done! I downloaded all files according to the link you sent before and unzipped file boost_1_69_0-bin-msvc-all-32-64.7z to folder boost_1_69_0. |
@dishkakrauch
|
@StrikerRUS Done! |
@dishkakrauch Good! Now install Python package with this just precompiled dll.
UPD: Don't forget to remove previously installed LightGBM Python package (if any) before running these commands. |
@StrikerRUS Done without errors! |
@dishkakrauch Great!
|
@StrikerRUS Thanks! Holy Moly! It's working! Can you tell why didn't we use conda or pip install? How should I update LightGBM to the newest version in future? |
@dishkakrauch No problem! Unfortunately, we do not maintain conda receipts. So you cannot install LightGBM via conda (at least official one, I'm not sure, but you can search By the commands above you've installed the latest version of LightGBM from GitHub. You can repeat them in the future to update LightGBM. But again, don't forget to remove previous installation. I suppose you're using conda, so it's possible to do via Speaking about pip, there is a delay between GitHub and latest PyPI files. Usually, it's about 2 months or more. Also, by default,
https://github.com/Microsoft/LightGBM/tree/master/python-package#build-gpu-version But please don't forget that it will not be the latest version! In addition, you may want to know about that after we've successfully adjusted all paths, it's highly likely that the following command will do all job:
It will install latest GPU version from GitHub, just like you did today but with fewer commands. |
@StrikerRUS Thanks for the details! And one more - is pip installation of lightgbm gpu version slower than building it from source like we did? p.s. особенно приятно, что можно и по-русски)) |
Hmmm... I have no idea. Can you try
Speaking about GPU version, there is no difference. All actions will be the same under the hood - compilation from sources will be performed anyway. The difference will be only in code freshness: the latest from GitHub and 2 months+ from PyPI.
|
@StrikerRUS thanks again for full explanation! |
@dishkakrauch Да не за что! For LightGBM-not-listed error I got an idea: please provide the output of |
@StrikerRUS I have just base env... |
@dishkakrauch Strange... Something is wrong with conda, definitely. |
@StrikerRUS same... |
@StrikerRUS solved aftrer "conda install annaconda" command! But after opening and closing juptyter notebook I got this error: |
Hm... Actually my python version had been downgraded from 3.7.1 to 3.6.5.final.0 but I don't understad which package did that. |
@StrikerRUS finally I reinstalled Anaconda and all packages from scratch. p.s. спасибо, не ожидал, что по open-source пакету может быть такой фидбэк; в итоге со всем разобрался! |
@dishkakrauch I'm very glad to see that all your problems have been solved!
Yeah, sometimes only reinstalling from scratch can help 😃 .
It wasn't LightGBM. That's for sure. We support Python 3.7 and 3.6. Moreover, we do not restrict Python version by Не за что! Здорово, что всё в итоге получилось) А фидбэк везде по-разному: где-то скинут ссыль на мануал и иди кури его (хорошо, если ещё главу подскажут); а вот, например, в соседнем проекте чувак предлагает даже созвониться по скайпу, чтобы помочь устранить проблему. И такое бывает) Удачи на Каггле (вижу, что ноутбук из той папки)! |
Environment info
Operating System: Windows 10
CPU/GPU model: Interl Core i7-8700 3.2 Ghz/NVIDIA GeForce GTX 1060 6GB
C++/Python/R version: Python 3.71
LightGBM version or commit hash: 2.2.1
Error message
Reproducible examples
System variable PATH:
Steps to reproduce
4.1 cd C:\boost\boost_1_69_0\tools\build
4.2 bootstrap.bat gcc
4.3 b2 install --prefix="C:\boost\boost-build" toolset=gcc
4.4 cd C:\boost\boost_1_69_0
4.5 b2 install --build_dir="C:\boost\boost-build" --prefix="C:\boost\boost-build" toolset=gcc --with=filesystem,system threading=multi --layout=system release -j 12 (I have 12 cores thats why last parameter is equal 12)
Then I get error above.
Can you please give me any suggestions?
I have read all guides related to lightgbm gpu version compilation include this:
https://lightgbm.readthedocs.io/en/latest/GPU-Windows.html
Tried to reinstall everything from start to end and still can't solve this problem...
The text was updated successfully, but these errors were encountered: