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
protect (hopefully) collective communication algorithms from abuse.
[simgrid.git]
/
src
/
smpi
/
colls
/
allgather-3dmesh.c
diff --git
a/src/smpi/colls/allgather-3dmesh.c
b/src/smpi/colls/allgather-3dmesh.c
index
5a22437
..
c83fdc6
100644
(file)
--- a/
src/smpi/colls/allgather-3dmesh.c
+++ b/
src/smpi/colls/allgather-3dmesh.c
@@
-103,7
+103,9
@@
int smpi_coll_tuned_allgather_3dmesh(void *send_buff, int send_count,
num_procs = smpi_comm_size(comm);
extent = smpi_datatype_get_extent(send_type);
num_procs = smpi_comm_size(comm);
extent = smpi_datatype_get_extent(send_type);
- is_3dmesh(num_procs, &X, &Y, &Z);
+ if (!is_3dmesh(num_procs, &X, &Y, &Z))
+ THROWF(arg_error,0, "allgather_3dmesh algorithm can't be used with this number of processes! ");
+
num_reqs = X;
num_reqs = X;