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
increase matrix size a bit, and do not wait insane amount of time on simulator now...
[simgrid.git]
/
examples
/
gras
/
pmm
/
pmm.c
diff --git
a/examples/gras/pmm/pmm.c
b/examples/gras/pmm/pmm.c
index
101ab30
..
7d20b7c
100755
(executable)
--- a/
examples/gras/pmm/pmm.c
+++ b/
examples/gras/pmm/pmm.c
@@
-16,7
+16,7
@@
#define NEIGHBOR_COUNT PROC_MATRIX_SIZE - 1
#define SLAVE_COUNT (PROC_MATRIX_SIZE*PROC_MATRIX_SIZE)
#define NEIGHBOR_COUNT PROC_MATRIX_SIZE - 1
#define SLAVE_COUNT (PROC_MATRIX_SIZE*PROC_MATRIX_SIZE)
-#define DATA_MATRIX_SIZE
9
+#define DATA_MATRIX_SIZE
18
const int submatrix_size = DATA_MATRIX_SIZE/PROC_MATRIX_SIZE;
XBT_LOG_NEW_DEFAULT_CATEGORY(pmm,"Parallel Matrix Multiplication");
const int submatrix_size = DATA_MATRIX_SIZE/PROC_MATRIX_SIZE;
XBT_LOG_NEW_DEFAULT_CATEGORY(pmm,"Parallel Matrix Multiplication");
@@
-80,7
+80,6
@@
typedef struct {
int master (int argc,char *argv[]) {
int i;
int master (int argc,char *argv[]) {
int i;
- double init_delay;
xbt_matrix_t A,B,C;
result_t result;
xbt_matrix_t A,B,C;
result_t result;
@@
-107,13
+106,8
@@
int master (int argc,char *argv[]) {
peers=amok_pm_group_new("pmm");
/* friends, we're ready. Come and play */
peers=amok_pm_group_new("pmm");
/* friends, we're ready. Come and play */
- if (gras_if_RL()) {
- init_delay = 5;
- } else {
- init_delay = 15; /* no idea why I have to wait that long in simulation */
- }
- INFO1("Wait for peers for %.0f sec",init_delay);
- gras_msg_handleall(init_delay);
+ INFO0("Wait for peers for 5 sec");
+ gras_msg_handleall(5);
INFO1("Got %ld pals",xbt_dynar_length(peers));
for (i=0;
INFO1("Got %ld pals",xbt_dynar_length(peers));
for (i=0;