Skip to content

Commit

Permalink
CPU build.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Aug 23, 2022
1 parent defab10 commit 744edee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cpp/test_serialization.cc
Expand Up @@ -445,6 +445,7 @@ TEST_F(L1SerializationTest, Hist) {
fmap_, p_dmat_);
}

#if defined(XGBOOST_USE_CUDA)
TEST_F(L1SerializationTest, GpuHist) {
TestLearnerSerialization({{"booster", "gbtree"},
{"objective", "reg:absoluteerror"},
Expand All @@ -453,6 +454,7 @@ TEST_F(L1SerializationTest, GpuHist) {
{"tree_method", "gpu_hist"}},
fmap_, p_dmat_);
}
#endif // defined(XGBOOST_USE_CUDA)

class LogitSerializationTest : public SerializationTest {
protected:
Expand Down

0 comments on commit 744edee

Please sign in to comment.