diff --git a/booster/xgboost_data.h b/booster/xgboost_data.h index c3a868ff1..c879c2d53 100644 --- a/booster/xgboost_data.h +++ b/booster/xgboost_data.h @@ -290,6 +290,7 @@ namespace xgboost{ } // sort columns unsigned ncol = static_cast(this->NumCol()); + #pragma omp parallel for schedule(static) for (unsigned i = 0; i < ncol; i++){ std::sort(&col_data_[col_ptr_[i]], &col_data_[col_ptr_[i + 1]], REntry::cmp_fvalue); }