Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Feb 2, 2024
1 parent 3a904f1 commit 527af09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/sycl/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class USMVector {
}
}

void Resize(::sycl::queue* qu, size_t size_new, T v, ::sycl::event* event) {
void Resize(::sycl::queue* qu, size_t size_new, T v, ::sycl::event* event) {
if (size_new <= size_) {
size_ = size_new;
} else if (size_new <= capacity_) {
Expand Down
6 changes: 4 additions & 2 deletions plugin/sycl/predictor/predictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ class Predictor : public xgboost::Predictor {
if (tree_begin < tree_end) {
const bool any_missing = !(dmat->IsDense());
if (any_missing) {
DevicePredictInternal<true>(&qu, &fval_buff, &miss_buff, device_matrix, out_preds, model, tree_begin, tree_end);
DevicePredictInternal<true>(&qu, &fval_buff, &miss_buff, device_matrix,
out_preds, model, tree_begin, tree_end);
} else {
DevicePredictInternal<false>(&qu, &fval_buff, &miss_buff, device_matrix, out_preds, model, tree_begin, tree_end);
DevicePredictInternal<false>(&qu, &fval_buff, &miss_buff, device_matrix,
out_preds, model, tree_begin, tree_end);
}
}
predictor_monitor_.Stop("DevicePredictInternal");
Expand Down

0 comments on commit 527af09

Please sign in to comment.