Fix gpu_hist apply_split test. (#4158)
This commit is contained in:
@@ -90,6 +90,7 @@ TEST(gpu_predictor, Test) {
|
||||
delete dmat;
|
||||
}
|
||||
|
||||
#if defined(XGBOOST_USE_NCCL)
|
||||
// Test whether pickling preserves predictor parameters
|
||||
TEST(gpu_predictor, MGPU_PicklingTest) {
|
||||
int ngpu;
|
||||
@@ -163,7 +164,9 @@ TEST(gpu_predictor, MGPU_PicklingTest) {
|
||||
|
||||
CheckCAPICall(XGBoosterFree(bst2));
|
||||
}
|
||||
#endif // defined(XGBOOST_USE_NCCL)
|
||||
|
||||
#if defined(XGBOOST_USE_NCCL)
|
||||
// multi-GPU predictor test
|
||||
TEST(gpu_predictor, MGPU_Test) {
|
||||
std::unique_ptr<Predictor> gpu_predictor =
|
||||
@@ -202,6 +205,6 @@ TEST(gpu_predictor, MGPU_Test) {
|
||||
delete dmat;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // defined(XGBOOST_USE_NCCL)
|
||||
} // namespace predictor
|
||||
} // namespace xgboost
|
||||
Reference in New Issue
Block a user