-/* Copyright (c) 2013-2014. The SimGrid Team.
+/* Copyright (c) 2013-2019. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
*
* Additional copyrights may follow
*/
-
+
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
*
*
*/
-#include "../colls_private.h"
-#include "../coll_tuned_topo.h"
-
-int smpi_coll_tuned_barrier_mvapich2_pair(MPI_Comm comm)
+#include "../coll_tuned_topo.hpp"
+#include "../colls_private.hpp"
+namespace simgrid{
+namespace smpi{
+int Coll_barrier_mvapich2_pair::barrier(MPI_Comm comm)
{
int size, rank;
/* N2_prev = greatest power of two < size of Comm */
for( N2_prev = 1; N2_prev <= size; N2_prev <<= 1 );
N2_prev >>= 1;
-
+
int surfeit = size - N2_prev;
/* Perform a combine-like operation */
return mpi_errno;
}
+
+}
+}