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
try to fix some compilation erros
[simgrid.git]
/
src
/
smpi
/
colls
/
alltoall-3dmesh.c
diff --git
a/src/smpi/colls/alltoall-3dmesh.c
b/src/smpi/colls/alltoall-3dmesh.c
index
e0224b2
..
81b1ecd
100644
(file)
--- a/
src/smpi/colls/alltoall-3dmesh.c
+++ b/
src/smpi/colls/alltoall-3dmesh.c
@@
-82,15
+82,15
@@
int smpi_coll_tuned_alltoall_3dmesh(void *send_buff, int send_count,
block_size = extent * send_count;
block_size = extent * send_count;
- tmp_buff1 = (char *)
xbt_malloc
(block_size * num_procs * two_dsize);
- tmp_buff2 = (char *)
xbt_malloc
(block_size * two_dsize);
+ tmp_buff1 = (char *)
smpi_get_tmp_sendbuffer
(block_size * num_procs * two_dsize);
+ tmp_buff2 = (char *)
smpi_get_tmp_recvbuffer
(block_size * two_dsize);
statuses = (MPI_Status *) xbt_malloc(num_reqs * sizeof(MPI_Status));
reqs = (MPI_Request *) xbt_malloc(num_reqs * sizeof(MPI_Request));
req_ptr = reqs;
statuses = (MPI_Status *) xbt_malloc(num_reqs * sizeof(MPI_Status));
reqs = (MPI_Request *) xbt_malloc(num_reqs * sizeof(MPI_Request));
req_ptr = reqs;
-
send_offset =
recv_offset = (rank % two_dsize) * block_size * num_procs;
+ recv_offset = (rank % two_dsize) * block_size * num_procs;
smpi_mpi_sendrecv(send_buff, send_count * num_procs, send_type, rank, tag,
tmp_buff1 + recv_offset, num_procs * recv_count,
smpi_mpi_sendrecv(send_buff, send_count * num_procs, send_type, rank, tag,
tmp_buff1 + recv_offset, num_procs * recv_count,
@@
-180,7
+180,7
@@
int smpi_coll_tuned_alltoall_3dmesh(void *send_buff, int send_count,
free(reqs);
free(statuses);
free(reqs);
free(statuses);
-
free
(tmp_buff1);
-
free
(tmp_buff2);
+
smpi_free_tmp_buffer
(tmp_buff1);
+
smpi_free_tmp_buffer
(tmp_buff2);
return MPI_SUCCESS;
}
return MPI_SUCCESS;
}