A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Commit broken files which were wrongly moved; right move in the next commit
[simgrid.git]
/
src
/
smpi
/
smpi_mpi.c
diff --git
a/src/smpi/smpi_mpi.c
b/src/smpi/smpi_mpi.c
index
b29243e
..
ed45302
100644
(file)
--- a/
src/smpi/smpi_mpi.c
+++ b/
src/smpi/smpi_mpi.c
@@
-1,15
+1,15
@@
-// FIXME: remove
-#include <stdio.h>
#include "private.h"
#include "private.h"
-int MPI_Init(int *argc, char ***argv)
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_mpi, smpi, "Logging specific to SMPI (mpi)");
+
+int SMPI_MPI_Init(int *argc, char ***argv)
{
smpi_mpi_init();
smpi_bench_begin();
return MPI_SUCCESS;
}
{
smpi_mpi_init();
smpi_bench_begin();
return MPI_SUCCESS;
}
-int MPI_Finalize()
+int
SMPI_
MPI_Finalize()
{
smpi_bench_end();
smpi_mpi_finalize();
{
smpi_bench_end();
smpi_mpi_finalize();
@@
-18,13
+18,13
@@
int MPI_Finalize()
// right now this just exits the current node, should send abort signal to all
// hosts in the communicator;
// right now this just exits the current node, should send abort signal to all
// hosts in the communicator;
-int MPI_Abort(MPI_Comm comm, int errorcode)
+int
SMPI_
MPI_Abort(MPI_Comm comm, int errorcode)
{
smpi_exit(errorcode);
return 0;
}
{
smpi_exit(errorcode);
return 0;
}
-int MPI_Comm_size(MPI_Comm comm, int *size)
+int
SMPI_
MPI_Comm_size(MPI_Comm comm, int *size)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-43,7
+43,7
@@
int MPI_Comm_size(MPI_Comm comm, int *size)
return retval;
}
return retval;
}
-int MPI_Comm_rank(MPI_Comm comm, int *rank)
+int
SMPI_
MPI_Comm_rank(MPI_Comm comm, int *rank)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-62,7
+62,7
@@
int MPI_Comm_rank(MPI_Comm comm, int *rank)
return retval;
}
return retval;
}
-int MPI_Type_size(MPI_Datatype datatype, size_t *size)
+int
SMPI_
MPI_Type_size(MPI_Datatype datatype, size_t *size)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-81,7
+81,7
@@
int MPI_Type_size(MPI_Datatype datatype, size_t *size)
return retval;
}
return retval;
}
-int MPI_Barrier(MPI_Comm comm)
+int
SMPI_
MPI_Barrier(MPI_Comm comm)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-98,7
+98,7
@@
int MPI_Barrier(MPI_Comm comm)
return retval;
}
return retval;
}
-int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request *request)
+int
SMPI_
MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Request *request)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-114,7
+114,7
@@
int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI
return retval;
}
return retval;
}
-int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Status *status)
+int
SMPI_
MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_Comm comm, MPI_Status *status)
{
int retval = MPI_SUCCESS;
smpi_mpi_request_t request;
{
int retval = MPI_SUCCESS;
smpi_mpi_request_t request;
@@
-135,7
+135,7
@@
int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag, MPI_
return retval;
}
return retval;
}
-int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm, MPI_Request *request)
+int
SMPI_
MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm, MPI_Request *request)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;
@@
-151,7
+151,7
@@
int MPI_Isend(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI
return retval;
}
return retval;
}
-int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm)
+int
SMPI_
MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_Comm comm)
{
int retval = MPI_SUCCESS;
smpi_mpi_request_t request;
{
int retval = MPI_SUCCESS;
smpi_mpi_request_t request;
@@
-172,7
+172,7
@@
int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dst, int tag, MPI_
return retval;
}
return retval;
}
-int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm) {
+int
SMPI_
MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm comm) {
int retval = MPI_SUCCESS;
int rank;
int retval = MPI_SUCCESS;
int rank;
@@
-201,7
+201,7
@@
int MPI_Bcast(void *buf, int count, MPI_Datatype datatype, int root, MPI_Comm co
// FIXME: needs to return null in event of MPI_UNDEFINED color...
// FIXME: seriously, this isn't pretty
// FIXME: needs to return null in event of MPI_UNDEFINED color...
// FIXME: seriously, this isn't pretty
-int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *comm_out)
+int
SMPI_
MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *comm_out)
{
int retval = MPI_SUCCESS;
{
int retval = MPI_SUCCESS;