Fix cpplint. (#4157)

* Add comment after #endif.
* Add missing headers.
This commit is contained in:
Jiaming Yuan
2019-02-18 00:16:29 +08:00
committed by GitHub
parent 71a604fae3
commit 2e618af743
46 changed files with 97 additions and 72 deletions

View File

@@ -178,7 +178,7 @@ class LearnerImpl : public Learner {
static void AssertGPUSupport() {
#ifndef XGBOOST_USE_CUDA
LOG(FATAL) << "XGBoost version not compiled with GPU support.";
#endif
#endif // XGBOOST_USE_CUDA
}
@@ -387,7 +387,7 @@ class LearnerImpl : public Learner {
cfg_["predictor"] = "cpu_predictor";
kv.second = "cpu_predictor";
}
#endif
#endif // XGBOOST_USE_CUDA
}
}
attributes_ =