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
only test 5th field if 4th exists
[simgrid.git]
/
src
/
smpi
/
smpi_replay.c
diff --git
a/src/smpi/smpi_replay.c
b/src/smpi/smpi_replay.c
index
e543313
..
ef4cc43
100644
(file)
--- a/
src/smpi/smpi_replay.c
+++ b/
src/smpi/smpi_replay.c
@@
-75,7
+75,7
@@
void* smpi_get_tmp_recvbuffer(int size){
recvbuffer=xbt_realloc(recvbuffer,size);
recvbuffer_size=size;
}
recvbuffer=xbt_realloc(recvbuffer,size);
recvbuffer_size=size;
}
- return
send
buffer;
+ return
recv
buffer;
}
void smpi_free_tmp_buffer(void* buf){
}
void smpi_free_tmp_buffer(void* buf){
@@
-689,7
+689,7
@@
static void action_gather(const char *const *action) {
int send_size = parse_double(action[2]);
int recv_size = parse_double(action[3]);
MPI_Datatype MPI_CURRENT_TYPE2;
int send_size = parse_double(action[2]);
int recv_size = parse_double(action[3]);
MPI_Datatype MPI_CURRENT_TYPE2;
- if(action[5]) {
+ if(action[
4] && action[
5]) {
MPI_CURRENT_TYPE=decode_datatype(action[5]);
MPI_CURRENT_TYPE2=decode_datatype(action[6]);
} else {
MPI_CURRENT_TYPE=decode_datatype(action[5]);
MPI_CURRENT_TYPE2=decode_datatype(action[6]);
} else {