Assure compatibility with gcc 4.3

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1375 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
fatene 2009-01-29 16:33:58 +00:00
commit b4763185cb
9 changed files with 139 additions and 79 deletions

View file

@ -122,6 +122,13 @@ void collectiveCountOfRunners ( unsigned int* num_local_exec_runners, unsigned i
MPI_Allreduce( num_local_exec_runners, num_exec_runners, 1, MPI_UNSIGNED, MPI_SUM, MPI_COMM_WORLD );
}
// Return the code of execution of MPI_Allreduce
int iCollectiveCountOfRunners ( unsigned int* num_local_exec_runners, unsigned int* num_exec_runners )
{
return MPI_Allreduce( num_local_exec_runners, num_exec_runners, 1, MPI_UNSIGNED, MPI_SUM, MPI_COMM_WORLD );
}
int getRankFromName (const std :: string & __name)
{

View file

@ -67,6 +67,8 @@ extern int getNumberOfNodes (); /* It gives the size of the environment (Total n
extern void collectiveCountOfRunners ( unsigned int* num_local_exec_runners, unsigned int* num_exec_runners );
extern int iCollectiveCountOfRunners ( unsigned int* num_local_exec_runners, unsigned int* num_exec_runners );
extern int getRankFromName (const std :: string & __name); /* It gives the rank of the process
expressed by its name */

View file

@ -34,10 +34,12 @@
*
*/
#include <iostream>
#include <set>
#include <cassert>
#include "schema.h"
#include "mess.h"
#include "xml_parser.h"
#include "comm.h"
#include "node.h"
@ -130,7 +132,8 @@ bool isScheduleNode ()
void loadSchema (const char * __filename)
{
// std :: cout << " I'm node number \t" << getNodeRank () << std :: endl;
openXMLDocument (__filename);
std :: string name;
@ -204,4 +207,5 @@ void loadSchema (const char * __filename)
}
closeXMLDocument ();
//synchronizeNodes ();
}