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

@@ -5,4 +5,4 @@
#if !defined(XGBOOST_USE_CUDA)
#include "elementwise_metric.cu"
#endif
#endif // !defined(XGBOOST_USE_CUDA)

View File

@@ -144,7 +144,7 @@ class MetricsReduction {
result.weights_sum_ += res_per_device[i].weights_sum_;
}
}
#endif
#endif // defined(XGBOOST_USE_CUDA)
return result;
}
@@ -152,7 +152,7 @@ class MetricsReduction {
EvalRow policy_;
#if defined(XGBOOST_USE_CUDA)
std::vector<dh::CubMemory> allocators_;
#endif
#endif // defined(XGBOOST_USE_CUDA)
};
struct EvalRowRMSE {