Squashed 'subtree/rabit/' changes from 85b7463..4ebe657
4ebe657 fix in cxx11 git-subtree-dir: subtree/rabit git-subtree-split: 4ebe657dd75999c1556c5f77625bdef2cd29917e
This commit is contained in:
parent
ea50f8e030
commit
6937384e62
@ -294,9 +294,9 @@ inline void SerializeReducer<DType>::Allreduce(DType *sendrecvobj,
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201103L
|
||||
template<typename DType>
|
||||
inline void Reducer<DType>::Allreduce(DType *sendrecvbuf, size_t count,
|
||||
std::function<void()> prepare_fun) {
|
||||
template<typename DType, void (*freduce)(DType &dst, const DType &src)>
|
||||
inline void Reducer<DType, freduce>::Allreduce(DType *sendrecvbuf, size_t count,
|
||||
std::function<void()> prepare_fun) {
|
||||
this->Allreduce(sendrecvbuf, count, InvokeLambda_, &prepare_fun);
|
||||
}
|
||||
template<typename DType>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user