@@ -218,26 +218,17 @@ TEST(GBTree, ChooseTreeMethod) {
218
218
return updater;
219
219
};
220
220
221
- // | | hist | gpu_hist | exact | NA |
222
- // |--------+---------+----------+-------+-----|
223
- // | CUDA:0 | GPU | GPU (w) | Err | GPU |
224
- // | CPU | CPU | GPU (w) | CPU | CPU |
225
- // |--------+---------+----------+-------+-----|
226
- // | -1 | CPU | GPU (w) | CPU | CPU |
227
- // | 0 | GPU | GPU (w) | Err | GPU |
228
- // |--------+---------+----------+-------+-----|
229
- // | NA | CPU | GPU (w) | CPU | CPU |
221
+ // | | hist | approx | exact | NA |
222
+ // |--------+---------+--------+-------+-----|
223
+ // | CUDA:0 | GPU | GPU | Err | GPU |
224
+ // | CPU | CPU | GPU | CPU | CPU |
225
+ // |--------+---------+--------+-------+-----|
226
+ // | NA | CPU | CPU | CPU | CPU |
230
227
//
231
- // - (w): warning
232
228
// - CPU: Run on CPU.
233
229
// - GPU: Run on CUDA.
234
230
// - Err: Not feasible.
235
231
// - NA: Parameter is not specified.
236
-
237
- // When GPU hist is specified with a CPU context, we should emit an error. However, it's
238
- // quite difficult to detect whether the CPU context is being used because it's the
239
- // default or because it's specified by the user.
240
-
241
232
std::map<std::pair<std::optional<std::string>, std::optional<std::string>>, std::string>
242
233
expectation{
243
234
// hist
@@ -246,10 +237,10 @@ TEST(GBTree, ChooseTreeMethod) {
246
237
{{" hist" , " cuda:0" }, " grow_gpu_hist" },
247
238
{{" hist" , std::nullopt}, " grow_quantile_histmaker" },
248
239
// approx
249
- {{" approx" , " cpu" }, " grow_gpu_approx " },
240
+ {{" approx" , " cpu" }, " grow_histmaker " },
250
241
{{" approx" , " cuda" }, " grow_gpu_approx" },
251
242
{{" approx" , " cuda:0" }, " grow_gpu_approx" },
252
- {{" approx" , std::nullopt}, " grow_gpu_approx " },
243
+ {{" approx" , std::nullopt}, " grow_histmaker " },
253
244
// exact
254
245
{{" exact" , " cpu" }, " grow_colmaker,prune" },
255
246
{{" exact" , " cuda" }, " err" },
0 commit comments