|
| | ParallelGroupBuilder (std::vector< SizeType > *p_rptr, std::vector< ValueType > *p_data) |
| |
| | ParallelGroupBuilder (std::vector< SizeType > *p_rptr, std::vector< ValueType > *p_data, std::vector< std::vector< SizeType > > *p_thread_rptr) |
| |
| void | InitBudget (std::size_t nkeys, int nthread) |
| | step 1: initialize the helper, with hint of number keys and thread used in the construction More...
|
| |
| void | AddBudget (std::size_t key, int threadid, SizeType nelem=1) |
| | step 2: add budget to each key More...
|
| |
| void | InitStorage () |
| | step 3: initialize the necessary storage More...
|
| |
| void | Push (std::size_t key, ValueType value, int threadid) |
| | step 4: add data to the allocated space, the calls to this function should be exactly match previous call to AddBudget More...
|
| |
template<typename ValueType, typename SizeType = std::size_t>
struct xgboost::common::ParallelGroupBuilder< ValueType, SizeType >
multi-thread version of group builder
- Template Parameters
-
| ValueType | type of entries in the sparse matrix |
| SizeType | type of the index range holder |