-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[GPU] [LightGBM] [Fatal] Cannot build GPU program: Build Program Failure #5914
Comments
Thanks for using LightGBM and for the report. Someone here will get to this when we can. If you do your own additional investigation in the interim, please post what you learn. Note that I've also reformatted some of your report. You might want to see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax if you're new to authoring text in GitHub-flavored markdown. |
Update: I tried to build the lightGBM environment from the GPU version image, but still met the issue. I guess some packages or dependencies conflict caused this issue. Unfortunately, I still have no idea to fix it. |
i tried this :
this is from setup.cfg [Flake8] [ignore] section |
Hey @SalmanGafarov, you need to use |
i am getting this error
for this code |
It's expected that you build from the root of the Do this: cd /kaggle/working/LightGBM
sh build-python.sh install --precompile |
i tried to install manually for cuda. and i get dependancy errors in kaggle.
|
@SalmanGafarov none of those dependency conflicts look related to |
Actually problem is lightgbm for cuda is outdated. I tried to find versions that depend with each other but eventually it said you need python 3.9 which it's not ok. It has to be updated |
Hi Code:
Error:
Thanks in advance. |
As of this writing,
!mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
import lightgbm as lgb
from sklearn.datasets import make_regression
X, y = make_regression(n_samples=10_000)
dtrain = lgb.Dataset(X, label=y)
bst = lgb.train(
params={
"objective": "regression",
"device": "gpu",
"verbose": 1
},
train_set=dtrain,
num_boost_round=5
) You should see something like the following:
I've also answered this on Stack Overflow: I've answered this on Stack Overflow tonight: https://stackoverflow.com/a/77078844/3986677. If you found this answer useful, please upvote that answer so others finding Stack Overflow from search engines will be able to get past this issue. |
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM! |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
Description
I followed the LightGBM GPU Tutorial to install the LightGBM GPU version on my service. Everything was fine until I tested it with a simple Python script: I got the error :
Reproducible example
Environment info
OS: ubuntu 20.04
python: 3.8
LightGBM : 3.3.5
nvidia-smi information:
Command(s) you used to install LightGBM
ldconfig -p | grep OpenCL result
Additional Comments
my lgbtest.py code:
RUN INFO
The text was updated successfully, but these errors were encountered: