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
Free exception, and fix warnings about variables possibly clobbered by longjmp.
[simgrid.git]
/
src
/
smpi
/
colls
/
alltoallv-pair.c
diff --git
a/src/smpi/colls/alltoallv-pair.c
b/src/smpi/colls/alltoallv-pair.c
index
6692eeb
..
afce437
100644
(file)
--- a/
src/smpi/colls/alltoallv-pair.c
+++ b/
src/smpi/colls/alltoallv-pair.c
@@
-36,6
+36,10
@@
int smpi_coll_tuned_alltoallv_pair(void *send_buff, int *send_counts, int *send_
rank = smpi_comm_rank(comm);
num_procs = smpi_comm_size(comm);
rank = smpi_comm_rank(comm);
num_procs = smpi_comm_size(comm);
+
+ if((num_procs&(num_procs-1)))
+ THROWF(arg_error,0, "alltoallv pair algorithm can't be used with non power of two number of processes ! ");
+
send_chunk = smpi_datatype_get_extent(send_type);
recv_chunk = smpi_datatype_get_extent(recv_type);
send_chunk = smpi_datatype_get_extent(send_type);
recv_chunk = smpi_datatype_get_extent(recv_type);