|
| | ParallelGroupBuilder (std::vector< SizeType > *p_rptr, std::vector< ValueType > *p_data, size_t base_row_offset=0) |
| | parallel group builder of data. More...
|
| |
| | ParallelGroupBuilder (std::vector< SizeType > *p_rptr, std::vector< ValueType > *p_data, std::vector< std::vector< SizeType > > *p_thread_rptr, size_t base_row_offset=0) |
| |
| void | InitBudget (std::size_t max_key, 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 = bst_ulong>
class 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 |