#include <string>
#include <algorithm>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <future>
#include "vw_exception.h"
#include <cassert>
 
Go to the source code of this file.
 | 
| template<class T , void(*)(T &, const T &) f>  | 
| void  | addbufs (T *buf1, const T *buf2, const size_t n) | 
|   | 
◆ CLOSESOCK
◆ socket_t
◆ addbufs()
template<class T , void(*)(T &, const T &) f> 
      
        
          | void addbufs  | 
          ( | 
          T *  | 
          buf1,  | 
        
        
           | 
           | 
          const T *  | 
          buf2,  | 
        
        
           | 
           | 
          const size_t  | 
          n  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 72 of file allreduce.h.
References f.
   74   for (
size_t i = 0; i < n; i++) 
f(buf1[i], buf2[i]);
 
 
 
 
◆ ar_buf_size
      
        
          | constexpr size_t ar_buf_size = 1 << 16 |