Skip to content

Commit

Permalink
fix compilation error for test_gpu_predictor.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
razdoburdin committed Nov 30, 2023
1 parent ac5a432 commit ae078a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cpp/predictor/test_gpu_predictor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ TEST(GPUPredictor, CategoricalPredictLeaf) {
}

TEST_F(MGPUPredictorTest, CategoricalPredictionLeafColumnSplit) {
RunWithInMemoryCommunicator(world_size_, TestCategoricalPredictLeaf, true, true);
auto ctx = MakeCUDACtx(common::AllVisibleGPUs() == 1 ? 0 : collective::GetRank());
RunWithInMemoryCommunicator(world_size_, TestCategoricalPredictLeaf, &ctx, true);
}

TEST(GPUPredictor, PredictLeafBasic) {
Expand Down

0 comments on commit ae078a1

Please sign in to comment.