When I try
library(tidymodels)
xg_model <-
boost_tree(
# trees = 1000,
# tree_depth = tune(), min_n = tune(),
# loss_reduction = tune(), ## first three: model complexity
# sample_size = tune(), mtry = tune(), ## randomness
# learn_rate = tune(), ## step size
) %>%
set_engine("xgboost", tree_method = 'gpu_hist') %>%
set_mode("classification") %>% fit(Species ~.,data=iris)
I get
Error in xgb.iter.update(bst$handle, dtrain, iteration - 1, obj) :
[09:00:18] amalgamation/../src/metric/../common/common.h:156: XGBoost version not compiled with GPU support.
Timing stopped at: 0 0 0
which would imply to me that it would use gpu, if my xgboost was compiled with that ability.