Function xgboost_sys::RabitAllreduce
source · pub unsafe extern "C" fn RabitAllreduce(
sendrecvbuf: *mut c_void,
count: usize,
enum_dtype: c_int,
enum_op: c_int,
prepare_fun: Option<unsafe extern "C" fn(arg: *mut c_void)>,
prepare_arg: *mut c_void
)
Expand description
\brief perform in-place allreduce, on sendrecvbuf this function is NOT thread-safe
Example Usage: the following code gives sum of the result
vector