Skip to content

Commit 4aee105

Browse files
committed
hide it.
1 parent 637d3d6 commit 4aee105

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

python-package/xgboost/testing/multi_target.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def run_multiclass(device: Device, learning_rate: Optional[float]) -> None:
2929
128, n_features=12, n_informative=10, n_classes=4, random_state=2025
3030
)
3131
clf = XGBClassifier(
32+
debug_synchronize=True,
3233
multi_strategy="multi_output_tree",
3334
callbacks=[ResetStrategy()],
3435
n_estimators=10,
@@ -50,6 +51,7 @@ def run_multilabel(device: Device, learning_rate: Optional[float]) -> None:
5051
# pylint: disable=unbalanced-tuple-unpacking
5152
X, y = make_multilabel_classification(128, random_state=2025)
5253
clf = XGBClassifier(
54+
debug_synchronize=True,
5355
multi_strategy="multi_output_tree",
5456
callbacks=[ResetStrategy()],
5557
n_estimators=10,
@@ -114,6 +116,7 @@ def run_test(
114116
evals_result: Dict[str, Dict] = {}
115117
booster = train(
116118
{
119+
"debug_synchronize": True,
117120
"device": device,
118121
"multi_strategy": "multi_output_tree",
119122
"learning_rate": 1,

src/tree/updater_gpu_hist.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ class MultiTargetHistMaker {
467467

468468
void GrowTree(linalg::Matrix<GradientPair>* split_gpair, DMatrix* p_fmat, ObjInfo const*,
469469
RegTree* p_tree) {
470-
if (this->param_.learning_rate - 1.0 != 0.0) {
470+
if (!this->hist_param_->debug_synchronize) {
471471
LOG(FATAL) << "GPU" << MTNotImplemented();
472472
}
473473
Driver<MultiExpandEntry> driver{param_, kMaxNodeBatchSize};

0 commit comments

Comments
 (0)