diff options
author | John Langford <jl@hunch.net> | 2014-10-17 16:00:05 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-10-17 16:00:05 +0400 |
commit | b372c0e2cba818e2301a2f14bb68a789a4030069 (patch) | |
tree | d244bc25a5fa785b54d2bb0e11a1ccb74ada4c89 /vowpalwabbit/allreduce.h | |
parent | 451dc31eb690f0995c88737af34949aa0ec92100 (diff) |
use pragma once
Diffstat (limited to 'vowpalwabbit/allreduce.h')
-rw-r--r-- | vowpalwabbit/allreduce.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/vowpalwabbit/allreduce.h b/vowpalwabbit/allreduce.h index ecac009b..9a2d434c 100644 --- a/vowpalwabbit/allreduce.h +++ b/vowpalwabbit/allreduce.h @@ -5,8 +5,7 @@ license as described in the file LICENSE. */ // This implements the allreduce function of MPI. -#ifndef ALLREDUCE_H -#define ALLREDUCE_H +#pragma once #include <string> #ifdef _WIN32 #include <WinSock2.h> @@ -163,9 +162,3 @@ template <class T, void (*f)(T&, const T&)> void all_reduce(T* buffer, const siz reduce<T, f>((char*)buffer, n*sizeof(T), socks.parent, socks.children); broadcast((char*)buffer, n*sizeof(T), socks.parent, socks.children); } - - - - - -#endif |