From ab0e7a3ddc6749d46b198a0a83eeda5dc084ea00 Mon Sep 17 00:00:00 2001 From: tqchen Date: Wed, 30 Apr 2014 09:48:41 -0700 Subject: [PATCH] use omp parallel sortting --- booster/xgboost_data.h | 1 + 1 file changed, 1 insertion(+) 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); }