| 727 | } |
| 728 | |
| 729 | void VerifyColumnSplitWithArgs(std::string const& tree_method, bool use_gpu, Args const& args, |
| 730 | Json const& expected_model) { |
| 731 | auto const world_size = collective::GetWorldSize(); |
| 732 | auto const rank = collective::GetRank(); |
| 733 | auto p_fmat = MakeFmatForObjTest("", 10, 10, 0); |
| 734 | std::shared_ptr<DMatrix> sliced{p_fmat->SliceCol(world_size, rank)}; |
| 735 | std::string device = "cpu"; |
| 736 | if (use_gpu) { |
| 737 | device = MakeCUDACtx(DistGpuIdx()).DeviceName(); |
| 738 | } |
| 739 | auto model = GetModelWithArgs(sliced, tree_method, device, args); |
| 740 | ASSERT_EQ(model, expected_model); |
| 741 | } |
| 742 | |
| 743 | void TestColumnSplitWithArgs(std::string const& tree_method, bool use_gpu, Args const& args, |
| 744 | bool federated) { |
no test coverage detected