Skip to content

Commit 60b8a75

Browse files
committed
Remove test.
1 parent bcf0edd commit 60b8a75

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

tests/cpp/gbm/test_gbtree.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ TEST(GBTree, ChoosePredictor) {
118118

119119
auto p_dmat = RandomDataGenerator(kRows, kCols, 0).GenerateDMatrix();
120120

121-
auto& data = (*(p_dmat->GetBatches<SparsePage>().begin())).data;
121+
auto const& data = (*(p_dmat->GetBatches<SparsePage>().begin())).data;
122122
p_dmat->Info().labels.Reshape(kRows);
123123

124124
auto learner = std::unique_ptr<Learner>(Learner::Create({p_dmat}));
@@ -145,7 +145,7 @@ TEST(GBTree, ChoosePredictor) {
145145
for (size_t i = 0; i < 4; ++i) {
146146
learner->UpdateOneIter(i, p_dmat);
147147
}
148-
ASSERT_TRUE(data.HostCanWrite());
148+
ASSERT_TRUE(data.HostCanRead());
149149

150150
// pull data into device.
151151
data.HostVector();

tests/cpp/test_learner.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -342,16 +342,6 @@ TEST(Learner, GPUConfiguration) {
342342
learner->UpdateOneIter(0, p_dmat);
343343
ASSERT_EQ(learner->Ctx()->gpu_id, 0);
344344
}
345-
{
346-
// With CPU algorithm but GPU Predictor, this is to simulate when
347-
// XGBoost is only used for prediction, so tree method is not
348-
// specified.
349-
std::unique_ptr<Learner> learner {Learner::Create(mat)};
350-
learner->SetParams({Arg{"tree_method", "hist"},
351-
Arg{"predictor", "gpu_predictor"}});
352-
learner->UpdateOneIter(0, p_dmat);
353-
ASSERT_EQ(learner->Ctx()->gpu_id, 0);
354-
}
355345
}
356346
#endif // defined(XGBOOST_USE_CUDA)
357347

0 commit comments

Comments
 (0)