Skip to content

Commit

Permalink
rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Sep 18, 2023
1 parent ae18374 commit 1b6e762
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/predictor/gpu_predictor.cu
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,6 @@ class ColumnSplitHelper {
ctx_->Ordinal(), decision_storage->data().get(), decision_storage->size());
collective::AllReduce<collective::Operation::kBitwiseAND>(
ctx_->Ordinal(), missing_storage->data().get(), missing_storage->size());
collective::Synchronize(ctx_->Ordinal());
}

void ResizeBitVectors(dh::caching_device_vector<BitType>* decision_storage,
Expand Down
2 changes: 1 addition & 1 deletion tests/cpp/tree/test_gpu_hist.cu
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ RegTree GetApproxTree(Context const* ctx, DMatrix* dmat) {
TrainParam param;
param.UpdateAllowUnknown(Args{});

linalg::Matrix<GradientPair> gpair({dmat->Info().num_row_}, ctx->Ordinal());
linalg::Matrix<GradientPair> gpair({dmat->Info().num_row_}, ctx->Device());
gpair.Data()->Copy(GenerateRandomGradients(dmat->Info().num_row_));

std::vector<HostDeviceVector<bst_node_t>> position(1);
Expand Down

0 comments on commit 1b6e762

Please sign in to comment.