-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Check failed: gpu_predictor_ #5592
Comments
Could you please provide a reproducible script. |
It happens even with your example: import xgboost as xgb Fetch dataset using sklearncov = fetch_covtype() Create 0.75/0.25 train/test splitX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, train_size=0.75, Specify sufficient boosting iterations to reach a minimumnum_round = 3000 Leave most parameters as defaultparam = {'objective': 'multi:softmax', # Specify multiclass classification Convert input data from numpy to XGBoost formatdtrain = xgb.DMatrix(X_train, label=y_train) gpu_res = {} # Store accuracy result Train modelxgb.train(param, dtrain, num_round, evals=[(dtest, 'test')], evals_result=gpu_res) And here is error: XGBoostError Traceback (most recent call last) C:\Anaconda3\lib\site-packages\xgboost\training.py in train(params, dtrain, num_boost_round, evals, obj, feval, maximize, early_stopping_rounds, evals_result, verbose_eval, xgb_model, callbacks) C:\Anaconda3\lib\site-packages\xgboost\training.py in _train_internal(params, dtrain, num_boost_round, evals, obj, feval, xgb_model, callbacks) C:\Anaconda3\lib\site-packages\xgboost\core.py in update(self, dtrain, iteration, fobj) C:\Anaconda3\lib\site-packages\xgboost\core.py in _check_call(ret) XGBoostError: [19:20:38] C:\1\xgboost\src\gbm\gbtree.cc:457: Check failed: gpu_predictor_: |
Ah, I can reproduce it when running on a CPU only environment. |
@rgbinventions Does your machine have a working GPU? |
Sorry, what exactly i should provide?
Yes, and i've built xgboost correctly following instructions without problems. |
I suspect there's something wrong with you cuda installation. |
ok, will try to re-install it. Currently CUDA Toolkit 10.2 btw |
@rgbinventions Could you run this script if you are using Linux?
|
If it prints more than 0 devices, then your installation is successful. |
Sorry, the problem was with CUDA install as you said. And GPU compute capability 3.0. Can close this issue. |
Hey guys!
I've built xgboost with GPU support. Everything was ok. But when i'm training the classifier model i got several gpu_predictor warnings and then fatal error. Here is the full error list:
The text was updated successfully, but these errors were encountered: