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
Add MPI_Request_get_status, MPI_Status_set_cancelled, MPI_Status_set_elements
[simgrid.git]
/
src
/
smpi
/
mpi
/
smpi_status.cpp
diff --git
a/src/smpi/mpi/smpi_status.cpp
b/src/smpi/mpi/smpi_status.cpp
index
0af84e2
..
22690e2
100644
(file)
--- a/
src/smpi/mpi/smpi_status.cpp
+++ b/
src/smpi/mpi/smpi_status.cpp
@@
-27,6
+27,15
@@
int Status::cancelled(MPI_Status * status)
return status->cancelled!=0;
}
return status->cancelled!=0;
}
+void Status::set_cancelled(MPI_Status * status, int flag)
+{
+ status->cancelled=flag;
+}
+
+void Status::set_elements (MPI_Status * status, MPI_Datatype , int count){
+ status->count=count;
+}
+
int Status::get_count(MPI_Status * status, MPI_Datatype datatype)
{
return status->count / datatype->size();
int Status::get_count(MPI_Status * status, MPI_Datatype datatype)
{
return status->count / datatype->size();