Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2014-10-17 16:00:05 +0400
committerJohn Langford <jl@hunch.net>2014-10-17 16:00:05 +0400
commitb372c0e2cba818e2301a2f14bb68a789a4030069 (patch)
treed244bc25a5fa785b54d2bb0e11a1ccb74ada4c89 /vowpalwabbit/allreduce.h
parent451dc31eb690f0995c88737af34949aa0ec92100 (diff)
use pragma once
Diffstat (limited to 'vowpalwabbit/allreduce.h')
-rw-r--r--vowpalwabbit/allreduce.h9
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