-/* Copyright (c) 2010-2015. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#ifndef SMPI_TOPO_HPP_INCLUDED
#define SMPI_TOPO_HPP_INCLUDED
-#include "private.h"
+#include "src/smpi/smpi_comm.hpp"
+#include "src/smpi/smpi_status.hpp"
typedef enum MPIR_Topo_type {
MPI_GRAPH=1,
namespace smpi{
class Topo {
+ public:
+ virtual ~Topo()=default;
protected:
MPI_Comm comm_;
};
int rank(int* coords, int* rank);
int shift(int direction, int disp, int *rank_source, int *rank_dest) ;
int dim_get(int *ndims);
+ static int Dims_create(int nnodes, int ndims, int dims[]);
};
~Topo_Dist_Graph();
};
-/*
- * This is a utility function, no need to have anything in the lower layer for this at all
- */
-extern int Dims_create(int nnodes, int ndims, int dims[]);
-
}
}