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
leaks --
[simgrid.git]
/
src
/
smpi
/
colls
/
alltoall-rdb.c
diff --git
a/src/smpi/colls/alltoall-rdb.c
b/src/smpi/colls/alltoall-rdb.c
index
9c0b9cc
..
cb49bfc
100644
(file)
--- a/
src/smpi/colls/alltoall-rdb.c
+++ b/
src/smpi/colls/alltoall-rdb.c
@@
-1,3
+1,9
@@
+/* Copyright (c) 2013-2014. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
#include "colls_private.h"
/*****************************************************************************
#include "colls_private.h"
/*****************************************************************************
@@
-50,7
+56,7
@@
int smpi_coll_tuned_alltoall_rdb(void *send_buff, int send_count,
max_size = num_procs * recv_increment;
max_size = num_procs * recv_increment;
- tmp_buff = (char *)
xbt_malloc
(max_size);
+ tmp_buff = (char *)
smpi_get_tmp_sendbuffer
(max_size);
curr_size = send_count * num_procs;
curr_size = send_count * num_procs;
@@
-143,6
+149,6
@@
int smpi_coll_tuned_alltoall_rdb(void *send_buff, int send_count,
send_count, send_type, rank, tag,
recv_ptr + (i * recv_count * extent),
recv_count, recv_type, rank, tag, comm, &status);
send_count, send_type, rank, tag,
recv_ptr + (i * recv_count * extent),
recv_count, recv_type, rank, tag, comm, &status);
-
free
(tmp_buff);
+
smpi_free_tmp_buffer
(tmp_buff);
return MPI_SUCCESS;
}
return MPI_SUCCESS;
}