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
Various cleanups in the generation of simgrid.jar
[simgrid.git]
/
src
/
smpi
/
colls
/
alltoall-bruck.c
diff --git
a/src/smpi/colls/alltoall-bruck.c
b/src/smpi/colls/alltoall-bruck.c
index
d38b3e5
..
99a93b5
100644
(file)
--- a/
src/smpi/colls/alltoall-bruck.c
+++ b/
src/smpi/colls/alltoall-bruck.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. */
+
/*****************************************************************************
* Function: alltoall_bruck
/*****************************************************************************
* Function: alltoall_bruck
@@
-30,7
+36,7
@@
smpi_coll_tuned_alltoall_bruck(void *send_buff, int send_count,
int *blocks_length, *disps;
int i, src, dst, rank, num_procs, count, remainder, block, position;
int *blocks_length, *disps;
int i, src, dst, rank, num_procs, count, remainder, block, position;
- int pack_size, tag =
1
, pof2 = 1;
+ int pack_size, tag =
COLL_TAG_ALLTOALL
, pof2 = 1;
char *tmp_buff;
char *tmp_buff;
@@
-42,7
+48,7
@@
smpi_coll_tuned_alltoall_bruck(void *send_buff, int send_count,
extent = smpi_datatype_get_extent(recv_type);
extent = smpi_datatype_get_extent(recv_type);
- tmp_buff = (char *)
xbt_malloc
(num_procs * recv_count * extent);
+ tmp_buff = (char *)
smpi_get_tmp_sendbuffer
(num_procs * recv_count * extent);
disps = (int *) xbt_malloc(sizeof(int) * num_procs);
blocks_length = (int *) xbt_malloc(sizeof(int) * num_procs);
disps = (int *) xbt_malloc(sizeof(int) * num_procs);
blocks_length = (int *) xbt_malloc(sizeof(int) * num_procs);
@@
-104,6
+110,6
@@
smpi_coll_tuned_alltoall_bruck(void *send_buff, int send_count,
recv_ptr + (num_procs - i - 1) * recv_count * extent,
recv_count, recv_type, rank, tag, comm, &status);
recv_ptr + (num_procs - i - 1) * 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;
}